Last active
February 1, 2017 05:14
-
-
Save descention/02eab011644421bce9a8f3a7e48a2e26 to your computer and use it in GitHub Desktop.
RM Mini 3 configuration for hass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- platform: broadlink | |
host: 192.168.100.109 | |
mac: 'removed' | |
switches: | |
tv_power: | |
friendly_name: "TV Power" | |
command_on: 'JgBIAAABJZMTEhMSEzYSExITERQRExMSEjcTNhMSEzYTNhI3EzYTNhITEhMRFBE4EhITEhITExITNhM2EzYTEhI3EzYROBI3EgANBQ==' | |
command_off: 'JgBIAAABJZMTEhMSEzYSExITERQRExMSEjcTNhMSEzYTNhI3EzYTNhITEhMRFBE4EhITEhITExITNhM2EzYTEhI3EzYROBI3EgANBQ==' | |
- platform: template | |
switches: | |
bedroom_tv: | |
entity_id: | |
- device_tracker.chromecast | |
value_template: "{{ is_state('device_tracker.chromecast','home') }}" | |
turn_on: | |
- service: switch.turn_on | |
data_template: | |
entity_id: > | |
{% if not is_state('device_tracker.chromecast','home') %} | |
switch.tv_power | |
{% endif %} | |
turn_off: | |
- service: switch.turn_off | |
data_template: | |
entity_id: > | |
{% if is_state('device_tracker.chromecast','home') %} | |
switch.tv_power | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Scott! Can you tell how did you record the commands in _on and _off?