Skip to content

Instantly share code, notes, and snippets.

@descention
Last active February 1, 2017 05:14
Show Gist options
  • Save descention/02eab011644421bce9a8f3a7e48a2e26 to your computer and use it in GitHub Desktop.
Save descention/02eab011644421bce9a8f3a7e48a2e26 to your computer and use it in GitHub Desktop.
RM Mini 3 configuration for hass
- 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 %}
@valentinalexeev
Copy link

Hi Scott! Can you tell how did you record the commands in _on and _off?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment