Shims templates

Posted on
Thu Jul 09, 2020 9:11 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Shims templates

Aqara temperature/humidity sensor

Code: Select all
message_type: '##AqaraTemp##'
props:
    SupportsBatteryLevel: true
    SupportsSensorValue: true
    battery_payload_key: battery
    battery_payload_type: json
    configDone: true
    reports_battery_status: true
    shimSensorPrecision: '1'
    shimSensorSubtype: Temperature-C
    state_dict_payload_key: .
    state_location: payload
    state_location_payload_key: temperature
    state_location_payload_type: json
    state_location_topic_field: '0'
    uid_location: topic
    uid_location_topic_field: '2'
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: AqaraTemp", "Any: ", "End: "]'
    queueMessage: true
type: shimValueSensor


Hue colour temp bulb
Code: Select all
message_type: '##HueBulb##'
props:
    SupportsColor: true
    SupportsStatusRequest: true
    SupportsWhite: true
    SupportsWhiteTemperature: true
    action_template: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    brightness_scale: '255'
    color_temp_payload_key: color_temp
    color_temp_scale: Mirek
    color_value_payload_key: color
    dimmer_action_payload: '{"state": "ON", "brightness": {{brightness}} }'
    dimmer_action_template: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    off_action_payload: 'OFF'
    on_action_payload: 'ON'
    rgb_scale: '255'
    set_rgb_template: '{"state":"ON","brightness":{{brightness}},"color":{"r":{{redLevel}},"g":{{greenLevel}},"b":{{blueLevel}}}}'
    set_rgb_topic: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    set_temp_template: '{"state":"ON","brightness":{{brightness}},"color_temp":{{color_temp}}}'
    set_temp_topic: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    state_location: payload
    state_location_payload_key: state
    state_location_payload_type: json
    state_location_topic_field: '0'
    status_action_payload: '{"state": ""}'
    status_action_template: zigbee2mqtt/HueBulb/{{uniqueID}}/get
    uid_location: topic
    uid_location_topic_field: '2'
    value_location_payload_key: brightness
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: HueBulb", "Any: ", "End: "]'
    queueMessage: true
type: shimColor


Hue colour bulb
Code: Select all
message_type: '##HueBulb##'
props:
    SupportsColor: true
    SupportsRGB: true
    SupportsStatusRequest: true
    SupportsWhite: true
    SupportsWhiteTemperature: true
    action_template: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    brightness_scale: '255'
    color_space: HueC
    color_temp_payload_key: color_temp
    color_temp_scale: Mirek
    color_value_payload_key: color
    dimmer_action_payload: '{"state": "ON", "brightness": {{brightness}} }'
    dimmer_action_template: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    off_action_payload: 'OFF'
    on_action_payload: 'ON'
    rgb_scale: '255'
    set_rgb_template: '{"state":"ON","brightness":{{brightness}},"color":{"x":{{x}},"y":{{y}}}}'
    set_rgb_topic: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    set_temp_template: '{"state":"ON","brightness":{{brightness}},"color_temp":{{color_temp}}}'
    set_temp_topic: zigbee2mqtt/HueBulb/{{uniqueID}}/set
    state_location: payload
    state_location_payload_key: state
    state_location_payload_type: json
    state_location_topic_field: '0'
    status_action_payload: '{"state": ""}'
    status_action_template: zigbee2mqtt/HueBulb/{{uniqueID}}/get
    uid_location: topic
    uid_location_topic_field: '2'
    value_location_payload_key: brightness
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: HueBulb", "Any: ", "End: "]'
    queueMessage: true
type: shimColor


Hue Remote
Code: Select all
message_type: '##HueRemote##'
props:
    SupportsBatteryLevel: true
    SupportsOnState: true
    battery_payload_key: battery
    battery_payload_type: json
    shimSensorSubtype: Generic
    state_dict_payload_key: .
    state_location: payload
    state_location_payload_key: action
    state_location_payload_type: json
    state_location_topic_field: '0'
    uid_location: topic
    uid_location_topic_field: '2'
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: HueRemote", "Any: ", "End: "]'
    queueMessage: true
type: shimOnOffSensor


Aqara Opple switch
Code: Select all
   MQTT Shims                     
message_type: '##AqaraOpple##'
props:
    SupportsOnState: true
    SupportsStatusRequest: true
    battery_payload_type: json
    shimSensorSubtype: Generic
    state_dict_payload_key: .
    state_location: payload
    state_location_payload_key: click
    state_location_payload_type: json
    state_location_topic_field: '0'
    uid_location: topic
    uid_location_topic_field: '2'
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: AqaraOpple", "Any: ", "End: "]'
    queueMessage: true
type: shimOnOffSensor


Posted on
Fri Jul 10, 2020 5:18 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: Shims templates

Smartthings Plug (would need autolog to confirm if same works for Innr plugs)

Code: Select all
message_type: '##Plug##'
props:
    SupportsEnergyMeter: true
    SupportsEnergyMeterCurPower: true
    SupportsOnState: true
    SupportsSensorValue: true
    SupportsStatusRequest: true
    action_template: zigbee2mqtt/Plug/{{uniqueID}}/set
    energy_payload_key: energy
    off_action_payload: '{"state": "OFF"}'
    on_action_payload: '{"state": "ON"}'
    power_payload_key: power
    shimSensorSubtype: Power
    state_dict_payload_key: .
    state_location: payload
    state_location_payload_key: state
    state_location_payload_type: json
    state_location_topic_field: '0'
    state_on_value: 'ON'
    status_action_template: zigbee2mqtt/Plug/{{uniqueID}}/get
    toggle_action_payload: toggle
    uid_location: topic
    uid_location_topic_field: '2'
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: Plug", "Any: ", "End: "]'
    queueMessage: true
type: shimRelay

Posted on
Thu Jan 14, 2021 10:24 am
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Shims templates

Salus SP600 (UK 240V Plug)

Code: Select all
14 Jan 2021 at 16:16:15
   MQTT Shims                     
message_type: '##SP600##'
props:
    SupportsEnergyMeter: true
    SupportsEnergyMeterCurPower: true
    SupportsOnState: true
    SupportsStatusRequest: true
    action_template: zigbee2mqtt/{{uniqueID}}/set
    energy_payload_key: energy
    off_action_payload: '{"state": "OFF"}'
    on_action_payload: '{"state": "ON"}'
    power_payload_key: power
    shimSensorSubtype: Power
    state_dict_payload_key: .
    state_location: payload
    state_location_payload_key: state
    state_location_payload_type: json
    state_location_topic_field: '2'
    state_on_value: 'ON'
    status_action_payload: '{ "state": ""}'
    status_action_template: zigbee2mqtt/{{uniqueID}}/get
    toggle_action_payload: '{"state": "TOGGLE"}'
    uid_location: topic
    uid_location_topic_field: '1'
trigger:
    match_list: '["Match: zigbee2mqtt", "Match: Salus_SP600"]'
    queueMessage: true
type: shimRelay

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Thu Jan 14, 2021 5:24 pm
FlyingDiver online
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shims templates

Stop posting things here that are not a Shim template.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest