diff --git a/mqtt_templates_gen2.txt b/mqtt_templates_gen2.txt index 29b0f56..f6e0b6d 100644 --- a/mqtt_templates_gen2.txt +++ b/mqtt_templates_gen2.txt @@ -53,7 +53,7 @@ payload={"name": "%shelly_id% Power 1", "stat_t": "~status/switch:1", "frc_upd": topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config payload={"name": "%shelly_id% Energy 1", "stat_t": "~status/switch:1", "frc_upd": "false", "enabled_by_default": false, "uniq_id": "%shelly_id%-1-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total|float/60)|round(2) }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}} topic=%discovery_prefix%/cover/%shelly_id%-roller-0/config -payload={"name": "%shelly_id% Roller 0", "enabled_by_default": false, "cmd_t": "~rpc", "pl_open": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.Open\",\"params\":{\"id\":0}}", "pl_cls": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.Close\",\"params\":{\"id\":0}}", "pl_stop": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.Stop\",\"params\":{\"id\":0}}", "stat_t": "~status/cover:0", value_template: "{{ value_json.state }}","state_closing": "closing","state_opening": "opening","state_open": "open","state_stopped": "stopped","state_closed": "closed","pos_t": "~status/cover:0", "pos_tpl": "{{ value_json.current_pos }}","pos_open": 100, "pos_clsd": 0, "uniq_id": "%shelly_id%-roller-0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"} +payload={"name": "%shelly_id% Roller 0", "enabled_by_default": false, "cmd_t": "~rpc", "pl_open": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.Open\",\"params\":{\"id\":0}}", "pl_cls": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.Close\",\"params\":{\"id\":0}}", "pl_stop": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.Stop\",\"params\":{\"id\":0}}", "stat_t": "~status/cover:0", "value_template": "{{ value_json.state }}","state_closing": "closing","state_opening": "opening","state_open": "open","state_stopped": "stopped","state_closed": "closed","pos_t": "~status/cover:0", "pos_tpl": "{{ value_json.current_pos }}","pos_open": 100, "pos_clsd": 0, "uniq_id": "%shelly_id%-roller-0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"} [shellyplusht] # Shelly Plus H&T topic=%discovery_prefix%/sensor/%shelly_id%/RSSI/config