diff --git a/GettingStarted.md b/GettingStarted.md index 1322efa5..245b10e8 100755 --- a/GettingStarted.md +++ b/GettingStarted.md @@ -57,7 +57,7 @@ - If you edit the font size you have to update both the font size and the corresponding font_size in Globals 3. Customize **Globals** -4. Update the **Custom Components** in the esphomeRemote/sharedRemoteConfig.yaml to match your config +4. Update the **Custom Components** in the esphomeRemote/sharedRemoteConfig.yaml to match your config, if you have difficulties looks at the [examples](sharedRemoteConfig-examples.md). 1. Every component is optional. If you don't want to include the component then remove it 2. Set your speaker media players under speaker_group_component 1. If you have a supported TV then update it otherwise remove the TV line diff --git a/esphomeRemote/esphomeRemotePlayer.h b/esphomeRemote/esphomeRemotePlayer.h index 5c9c02b4..bd3ff971 100644 --- a/esphomeRemote/esphomeRemotePlayer.h +++ b/esphomeRemote/esphomeRemotePlayer.h @@ -150,6 +150,9 @@ class BasePlayerComponent : public CustomAPIDevice, public Component { } else if (strcmp(state.c_str(), "standby") == 0) { playerState = PowerOffRemotePlayerState; clearMedia(); + } else if (strcmp(state.c_str(), "off") == 0) { + playerState = PowerOffRemotePlayerState; + clearMedia(); } else if (strcmp(state.c_str(), "home") == 0 || strcmp(state.c_str(), "Roku") == 0) { playerState = StoppedRemotePlayerState; clearMedia(); diff --git a/sharedRemoteConfig-examples.md b/sharedRemoteConfig-examples.md new file mode 100644 index 00000000..a08065e2 --- /dev/null +++ b/sharedRemoteConfig-examples.md @@ -0,0 +1,42 @@ +