Skip to content

Instantly share code, notes, and snippets.

@b2un0
Last active December 8, 2023 07:26
Show Gist options
  • Save b2un0/2b474791b4d9794e262075e204b0772c to your computer and use it in GitHub Desktop.
Save b2un0/2b474791b4d9794e262075e204b0772c to your computer and use it in GitHub Desktop.
Home Assistant Lidl HG06467 _TZE200_s8gkrkxk Effect Switch (Melinera smart LED string lights)
# replace "Livingroom Christmas Tree" and the identifier "zigbee2mqtt_0xbc33acfffe0443e5" with your device
mqtt:
switch:
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_rainbow
name: "Livingroom Christmas Tree Rainbow"
icon: "mdi:looks"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'rainbow' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"rainbow","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_steady
name: "Livingroom Christmas Tree Steady"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'steady' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"steady","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_snow
name: "Livingroom Christmas Tree Snow"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'snow' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"snow","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_sparkles
name: "Livingroom Christmas Tree Sparkles"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'sparkles' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"sparkles","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_snake
name: "Livingroom Christmas Tree Snake"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'snake' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"snake","speed":100,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_twinkle
name: "Livingroom Christmas Tree Twinkle"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'twinkle' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"twinkle","speed":100,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_firework
name: "Livingroom Christmas Tree Firework"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'firework' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"firework","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_waves
name: "Livingroom Christmas Tree Waves"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'waves' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"waves","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_updown
name: "Livingroom Christmas Tree UpDown"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'updown' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"updown","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_vintage
name: "Livingroom Christmas Tree Vintage"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'vintage' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"vintage","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_fading
name: "Livingroom Christmas Tree Fading"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'fading' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"fading","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_collide
name: "Livingroom Christmas Tree Collide"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'collide' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"collide","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_strobe
name: "Livingroom Christmas Tree Strobe"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'strobe' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"strobe","speed":100,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_carnaval
name: "Livingroom Christmas Tree Carnaval"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'carnaval' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"carnaval","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_glow
name: "Livingroom Christmas Tree Glow"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'glow' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"glow","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
- unique_id: mqtt_z2m_livingroom_christmas_tree_scene_flag
name: "Livingroom Christmas Tree Flag"
icon: "mdi:flag"
device:
identifiers: zigbee2mqtt_0xbc33acfffe0443e5
availability:
- topic: "zigbee2mqtt/Livingroom Christmas Tree/availability"
value_template: "{{ value_json.state }}"
payload_available: "online"
state_topic: "zigbee2mqtt/Livingroom Christmas Tree"
state_on: true
state_off: false
value_template: "{{ value_json.state == 'ON' and value_json.effect.effect == 'horizontal_flag' }}"
command_topic: "zigbee2mqtt/Livingroom Christmas Tree/set"
payload_on: >-
{"effect":{"effect":"horizontal_flag","speed":50,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}, "state": "ON"}
payload_off: >-
{"state": "OFF"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment