Guest User

Untitled

a guest
Dec 9th, 2025
53
0
Never
11
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.67 KB | None | 0 0
  1. # Usable template keywords:
  2. # discovery_prefix, shelly_topic, shelly_id, shelly_model, shelly_mac
  3. #
  4. [shellyplus1][shelly1mini][shelly1minig3] # Shelly Plus 1
  5. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  6. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/"}
  7. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  8. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  9. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  10. payload={"name": "%shelly_id% Temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  11. topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
  12. payload={"name": "%shelly_topic% Input Event 0", "json_attributes_topic": "~events/rpc", "value_template":"{{value_json['params']['events'][0].event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": false, "uniq_id": "%shelly_id%-event-0", "~":"%shelly_topic%/", "dev_cla": "event", "stat_cla": "selector" , "ops":["-","scheduled_restart","btn_down","btn_up","single_push","double_push","triple_push","long_push"] }
  13. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  14. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  15. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
  16. payload={"name": "%shelly_id% Temperature Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  17. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
  18. payload={"name": "%shelly_id% Humidity Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-humidity-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "humidity", "stat_cla": "measurement", "unit_of_meas": "%","stat_t": "~status/humidity:100", "val_tpl": "{{ value_json.rh }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  19. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
  20. payload={"name": "%shelly_id% Temperature Ext0 S", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100-s", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  21. topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
  22. payload={"name": "%shelly_id% Temperature Ext1", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-101", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:101", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  23. topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
  24. payload={"name": "%shelly_id% Temperature Ext2", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-102", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:102", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  25. topic=%discovery_prefix%/sensor/%shelly_id%-ext/voltage/config
  26. payload={"name": "%shelly_id% Addon Voltmeter 0", "~": "%shelly_topic%/", "stat_t": "~status/voltmeter:100", "enabled_by_default": false, "uniq_id": "%shelly_id%-ext-voltmeter", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}"}
  27.  
  28. [shelly1pmg3][shellyplus1pm][shelly1pmmini][shelly1pmminig3] # Shelly Plus 1PM
  29. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  30. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/"}
  31. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  32. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  33. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  34. payload={"name": "%shelly_id% Temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  35. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  36. payload={"name": "%shelly_id% Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  37. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  38. payload={"name": "%shelly_id% Power 0", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  39. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  40. payload={"name": "%shelly_id% Energy 0", "stat_t": "~status/switch:0", "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  41. topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
  42. payload={"name": "%shelly_topic% Input Event 0", "json_attributes_topic": "~events/rpc", "value_template":"{{value_json['params']['events'][0].event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": false, "uniq_id": "%shelly_id%-event-0", "~":"%shelly_topic%/", "dev_cla": "event", "stat_cla": "selector" , "ops":["-","scheduled_restart","btn_down","btn_up","single_push","double_push","triple_push","long_push"] }
  43. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  44. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  45. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
  46. payload={"name": "%shelly_id% Temperature Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  47. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
  48. payload={"name": "%shelly_id% Humidity Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-humidity-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "humidity", "stat_cla": "measurement", "unit_of_meas": "%","stat_t": "~status/humidity:100", "val_tpl": "{{ value_json.rh }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  49. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
  50. payload={"name": "%shelly_id% Temperature Ext0 S", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100-s", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  51. topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
  52. payload={"name": "%shelly_id% Temperature Ext1", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-101", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:101", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  53. topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
  54. payload={"name": "%shelly_id% Temperature Ext2", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-102", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:102", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  55. topic=%discovery_prefix%/sensor/%shelly_id%-ext/voltage/config
  56. payload={"name": "%shelly_id% Addon Voltmeter 0", "~": "%shelly_topic%/", "stat_t": "~status/voltmeter:100", "enabled_by_default": false, "uniq_id": "%shelly_id%-ext-voltmeter", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}"}
  57.  
  58. [shelly2pmg3][shellyplus2pm] # Shelly Plus 2PM
  59. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  60. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/"}
  61. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  62. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  63. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  64. payload={"name": "%shelly_id% Temperature 0", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature-0", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  65. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  66. payload={"name": "%shelly_id% Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  67. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  68. payload={"name": "%shelly_id% Power 0", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  69. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  70. payload={"name": "%shelly_id% Energy 0", "stat_t": "~status/switch:0", "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  71. topic=%discovery_prefix%/switch/%shelly_id%-1/config
  72. payload={"name": "%shelly_topic% Relay 1", "cmd_t": "~rpc", "pl_off": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":false}}", "pl_on": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":true}}", "stat_t": "~status/switch:1", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1", "qos": 0, "~": "%shelly_topic%/"}
  73. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  74. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true", "enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  75. topic=%discovery_prefix%/sensor/%shelly_id%-1/temperature/config
  76. payload={"name": "%shelly_id% Temperature 1", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature-1", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:1", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  77. topic=%discovery_prefix%/sensor/%shelly_id%-1/voltage/config
  78. payload={"name": "%shelly_id% Voltage 1", "~": "%shelly_topic%/", "stat_t": "~status/switch:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-1-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  79. topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
  80. payload={"name": "%shelly_id% Power 1", "stat_t": "~status/switch:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-1-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  81. topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
  82. payload={"name": "%shelly_id% Energy 1", "stat_t": "~status/switch:1", "uniq_id": "%shelly_id%-1-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  83. topic=%discovery_prefix%/cover/%shelly_id%-roller-0/config
  84. 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%/"}
  85. topic=%discovery_prefix%/cover/%shelly_id%-roller-pos/config
  86. payload={"name": "%shelly_id% Roller Pos (Obsolote, needs local script)", "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, "set_pos_t": "~rpc","set_pos_tpl": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.GoToPosition\",\"params\":{\"id\":0,\"pos\": {{ position }} }}", "uniq_id": "%shelly_id%-roller-pos", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  87. topic=%discovery_prefix%/cover/%shelly_id%-roller-pos-c/config
  88. payload={"name": "%shelly_id% Roller Pos (MqttControl)", "enabled_by_default": false, "cmd_t": "~command/cover:0", "pl_open": "open", "pl_cls": "close", "pl_stop": "stop", "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, "set_pos_t": "~command/cover:0","set_pos_tpl": "pos, %d", "uniq_id": "%shelly_id%-roller-pos-c", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  89. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/temperature/config
  90. payload={"name": "%shelly_id% Roller Temperature 0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/cover:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  91. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/voltage/config
  92. payload={"name": "%shelly_id% Roller Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/cover:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  93. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/power/config
  94. payload={"name": "%shelly_id% Roller Power 0", "stat_t": "~status/cover:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  95. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/energy/config
  96. payload={"name": "%shelly_id% Roller Energy 0", "stat_t": "~status/cover:0", "enabled_by_default": false, "uniq_id": "%shelly_id%-roller-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  97. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  98. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  99. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
  100. payload={"name": "%shelly_id% Temperature Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  101. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
  102. payload={"name": "%shelly_id% Humidity Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-humidity-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "humidity", "stat_cla": "measurement", "unit_of_meas": "%","stat_t": "~status/humidity:100", "val_tpl": "{{ value_json.rh }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  103. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
  104. payload={"name": "%shelly_id% Temperature Ext0 S", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100-s", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  105. topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
  106. payload={"name": "%shelly_id% Temperature Ext1", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-101", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:101", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  107. topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
  108. payload={"name": "%shelly_id% Temperature Ext2", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-102", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:102", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  109. topic=%discovery_prefix%/sensor/%shelly_id%-ext/voltage/config
  110. payload={"name": "%shelly_id% Addon Voltmeter 0", "~": "%shelly_topic%/", "stat_t": "~status/voltmeter:100", "enabled_by_default": false, "uniq_id": "%shelly_id%-ext-voltmeter", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}"}
  111.  
  112. [shellyplusht][shellyhtg3] # Shelly Plus H&T
  113. topic=%discovery_prefix%/sensor/%shelly_id%/RSSI/config
  114. payload={"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"},"dev_cla": "signal_strength","enabled_by_default":true,"entity_category":"diagnostic","~": "%shelly_topic%/","json_attributes_topic":"~status/wifi","name": "%shelly_id% WiFi Signal","state_class":"measurement","state_topic":"~status/wifi","unique_id":"%shelly_id%-rssi","unit_of_measurement":"dBm","value_template":"{{ value_json.rssi }}","icon": "mdi:signal"}
  115. topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
  116. payload={"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "name": "%shelly_id% Battery", "stat_t": "~status/devicepower:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{ value_json['battery'].percent }}", "exp_aft": 51839, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  117. topic=%discovery_prefix%/sensor/%shelly_id%/temperature/config
  118. payload={"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"},"name":"%shelly_id% Temperature","device_class":"temperature","enabled_by_default":true,"~": "%shelly_topic%/","json_attributes_topic":"~status/temperature:0","state_class":"measurement","state_topic":"~status/temperature:0","unique_id":"%shelly_id%-temperature","unit_of_measurement":"C","value_template":"{{ value_json.tC }}"}
  119. topic=%discovery_prefix%/sensor/%shelly_id%/humidity/config
  120. payload={"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"},"name":"%shelly_id% Humidity","device_class":"humidity","enabled_by_default":true,"~": "%shelly_topic%/","json_attributes_topic":"~status/humidity:0","state_class":"measurement","state_topic":"~status/humidity:0","unique_id":"%shelly_id%-humidity","unit_of_measurement":"%","value_template":"{{ value_json.rh }}"}
  121. topic=%discovery_prefix%/binary_sensor/%shelly_id%/ext_power/config
  122. payload={"name": "%shelly_id% External power", "stat_t": "~status/devicepower:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-ext-power", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "pl_on": "true", "pl_off": "false", "stat_off": "false","stat_on": "true", "val_tpl": "{{value_json.external.present}}", "exp_aft": 4320, "dev_cla": "battery_charging","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  123. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  124. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  125.  
  126. [shellyplusplugs][shellyplusplugus][shellyplusplugit][shellypluspluguk] # Shelly Plus Plug
  127. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  128. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "%shelly_topic%/"}
  129. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  130. payload={"name": "%shelly_id% Temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  131. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  132. payload={"name": "%shelly_id% Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  133. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  134. payload={"name": "%shelly_id% Power 0", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  135. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  136. payload={"name": "%shelly_id% Energy 0", "stat_t": "~status/switch:0", "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  137. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  138. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  139.  
  140. [shellyplusi4] # Shelly Plus I4
  141. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  142. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  143. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  144. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  145. topic=%discovery_prefix%/binary_sensor/%shelly_id%-2/input/config
  146. payload={"name": "%shelly_topic% Input 2", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true", "enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-2-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}, "~": "%shelly_topic%/", "stat_t": "~status/input:2"}
  147. topic=%discovery_prefix%/binary_sensor/%shelly_id%-3/input/config
  148. payload={"name": "%shelly_topic% Input 3", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-3-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-3"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-3"}, "~": "%shelly_topic%/", "stat_t": "~status/input:3"}
  149. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  150. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  151. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
  152. payload={"name": "%shelly_id% Temperature Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  153. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
  154. payload={"name": "%shelly_id% Humidity Ext0", "enabled_by_default": false, "uniq_id": "%shelly_id%-humidity-100", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "humidity", "stat_cla": "measurement", "unit_of_meas": "%","stat_t": "~status/humidity:100", "val_tpl": "{{ value_json.rh }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-ext-0"}}
  155. topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
  156. payload={"name": "%shelly_id% Temperature Ext0 S", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-100-s", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:100", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  157. topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
  158. payload={"name": "%shelly_id% Temperature Ext1", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-101", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:101", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  159. topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
  160. payload={"name": "%shelly_id% Temperature Ext2", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-102", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:102", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  161. topic=%discovery_prefix%/sensor/%shelly_id%-ext/voltage/config
  162. payload={"name": "%shelly_id% Addon Voltmeter 0", "~": "%shelly_topic%/", "stat_t": "~status/voltmeter:100", "enabled_by_default": false, "uniq_id": "%shelly_id%-ext-voltmeter", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}"}
  163.  
  164. [shellypro1] # Shelly Pro 1
  165. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  166. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/"}
  167. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  168. payload={"name": "%shelly_id% Temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  169. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input-0/config
  170. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  171. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input-1/config
  172. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  173. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  174. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  175.  
  176. [shellypro1pm] # Shelly Pro 1PM
  177. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  178. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/"}
  179. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  180. payload={"name": "%shelly_id% Temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  181. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input-0/config
  182. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  183. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  184. payload={"name": "%shelly_id% Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  185. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  186. payload={"name": "%shelly_id% Power 0", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  187. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  188. payload={"name": "%shelly_id% Energy 0", "stat_t": "~status/switch:0", "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  189. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input-1/config
  190. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  191. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  192. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  193.  
  194. [shellypro2] # Shelly Pro 2
  195. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  196. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/"}
  197. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  198. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  199. topic=%discovery_prefix%/switch/%shelly_id%-1/config
  200. payload={"name": "%shelly_topic% Relay 1", "cmd_t": "~rpc", "pl_off": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":false}}", "pl_on": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":true}}", "stat_t": "~status/switch:1", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/"}
  201. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  202. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  203. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  204. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  205.  
  206. [shellypro2pm] # Shelly Pro 2PM
  207. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  208. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/"}
  209. topic=%discovery_prefix%/sensor/%shelly_id%-0/temperature/config
  210. payload={"name": "%shelly_id% Temperature 0", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature-0", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  211. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  212. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  213. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  214. payload={"name": "%shelly_id% Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  215. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  216. payload={"name": "%shelly_id% Power 0", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  217. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  218. payload={"name": "%shelly_id% Energy 0", "stat_t": "~status/switch:0", "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  219. topic=%discovery_prefix%/switch/%shelly_id%-1/config
  220. payload={"name": "%shelly_topic% Relay 1", "cmd_t": "~rpc", "pl_off": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":false}}", "pl_on": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":true}}", "stat_t": "~status/switch:1", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/"}
  221. topic=%discovery_prefix%/sensor/%shelly_id%-1/temperature/config
  222. payload={"name": "%shelly_id% Temperature 1", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature-1", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/switch:1", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  223. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  224. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  225. topic=%discovery_prefix%/sensor/%shelly_id%-1/voltage/config
  226. payload={"name": "%shelly_id% Voltage 1", "~": "%shelly_topic%/", "stat_t": "~status/switch:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-1-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  227. topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
  228. payload={"name": "%shelly_id% Power 1", "stat_t": "~status/switch:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-1-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  229. topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
  230. payload={"name": "%shelly_id% Energy 1", "stat_t": "~status/switch:1", "uniq_id": "%shelly_id%-1-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  231. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  232. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  233. topic=%discovery_prefix%/cover/%shelly_id%-roller-0/config
  234. 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%/"}
  235. topic=%discovery_prefix%/cover/%shelly_id%-roller-pos/config
  236. payload={"name": "%shelly_id% Roller Pos (Obsolote, needs local script)", "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, "set_pos_t": "~rpc","set_pos_tpl": "{\"id\":0,\"src\":\"domoticz\",\"method\":\"Cover.GoToPosition\",\"params\":{\"id\":0,\"pos\": {{ position }} }}", "uniq_id": "%shelly_id%-roller-pos", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  237. topic=%discovery_prefix%/cover/%shelly_id%-roller-pos-c/config
  238. payload={"name": "%shelly_id% Roller Pos (MqttControl)", "enabled_by_default": false, "cmd_t": "~command/cover:0", "pl_open": "open", "pl_cls": "close", "pl_stop": "stop", "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, "set_pos_t": "~command/cover:0","set_pos_tpl": "pos, %d", "uniq_id": "%shelly_id%-roller-pos-c", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  239. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/temperature/config
  240. payload={"name": "%shelly_id% Roller Temperature 0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/cover:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  241. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/voltage/config
  242. payload={"name": "%shelly_id% Roller Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/cover:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  243. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/power/config
  244. payload={"name": "%shelly_id% Roller Power 0", "stat_t": "~status/cover:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  245. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/energy/config
  246. payload={"name": "%shelly_id% Roller Energy 0", "stat_t": "~status/cover:0", "enabled_by_default": false, "uniq_id": "%shelly_id%-roller-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  247.  
  248. [shellypro3] # Shelly Pro 3
  249. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  250. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/"}
  251. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  252. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  253. topic=%discovery_prefix%/switch/%shelly_id%-1/config
  254. payload={"name": "%shelly_topic% Relay 1", "cmd_t": "~rpc", "pl_off": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":false}}", "pl_on": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":true}}", "stat_t": "~status/switch:1", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/"}
  255. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  256. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  257. topic=%discovery_prefix%/switch/%shelly_id%-2/config
  258. payload={"name": "%shelly_topic% Relay 2", "cmd_t": "~rpc", "pl_off": "{\"id\":3,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":2,\"on\":false}}", "pl_on": "{\"id\":3,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":2,\"on\":true}}", "stat_t": "~status/switch:2", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}, "~": "%shelly_topic%/"}
  259. topic=%discovery_prefix%/binary_sensor/%shelly_id%-2/input/config
  260. payload={"name": "%shelly_topic% Input 2", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-2-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}, "~": "%shelly_topic%/", "stat_t": "~status/input:2"}
  261. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  262. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  263.  
  264. [shellypro4pm] # Shelly Pro 4PM
  265. topic=%discovery_prefix%/switch/%shelly_id%-0/config
  266. payload={"name": "%shelly_topic% Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/"}
  267. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  268. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  269. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  270. payload={"name": "%shelly_id% Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  271. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  272. payload={"name": "%shelly_id% Power 0", "stat_t": "~status/switch:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  273. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  274. payload={"name": "%shelly_id% Energy 0", "stat_t": "~status/switch:0", "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  275. topic=%discovery_prefix%/switch/%shelly_id%-1/config
  276. payload={"name": "%shelly_topic% Relay 1", "cmd_t": "~rpc", "pl_off": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":false}}", "pl_on": "{\"id\":2,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":1,\"on\":true}}", "stat_t": "~status/switch:1", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/"}
  277. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  278. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  279. topic=%discovery_prefix%/sensor/%shelly_id%-1/voltage/config
  280. payload={"name": "%shelly_id% Voltage 1", "~": "%shelly_topic%/", "stat_t": "~status/switch:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-1-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  281. topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
  282. payload={"name": "%shelly_id% Power 1", "stat_t": "~status/switch:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-1-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  283. topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
  284. payload={"name": "%shelly_id% Energy 1", "stat_t": "~status/switch:1", "uniq_id": "%shelly_id%-1-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
  285. topic=%discovery_prefix%/switch/%shelly_id%-2/config
  286. payload={"name": "%shelly_topic% Relay 2", "cmd_t": "~rpc", "pl_off": "{\"id\":3,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":2,\"on\":false}}", "pl_on": "{\"id\":3,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":2,\"on\":true}}", "stat_t": "~status/switch:2", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}, "~": "%shelly_topic%/"}
  287. topic=%discovery_prefix%/binary_sensor/%shelly_id%-2/input/config
  288. payload={"name": "%shelly_topic% Input 2", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-2-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}, "~": "%shelly_topic%/", "stat_t": "~status/input:2"}
  289. topic=%discovery_prefix%/sensor/%shelly_id%-2/voltage/config
  290. payload={"name": "%shelly_id% Voltage 2", "~": "%shelly_topic%/", "stat_t": "~status/switch:2", "enabled_by_default": true, "uniq_id": "%shelly_id%-2-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}}
  291. topic=%discovery_prefix%/sensor/%shelly_id%-2/power/config
  292. payload={"name": "%shelly_id% Power 2", "stat_t": "~status/switch:2", "enabled_by_default": true, "uniq_id": "%shelly_id%-2-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}}
  293. topic=%discovery_prefix%/sensor/%shelly_id%-2/energy/config
  294. payload={"name": "%shelly_id% Energy 2", "stat_t": "~status/switch:2", "uniq_id": "%shelly_id%-2-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-2"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-2"}}
  295. topic=%discovery_prefix%/switch/%shelly_id%-3/config
  296. payload={"name": "%shelly_topic% Relay 3", "cmd_t": "~rpc", "pl_off": "{\"id\":4,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":3,\"on\":false}}", "pl_on": "{\"id\":4,\"src\":\"%shelly_id%\",\"method\":\"Switch.Set\",\"params\":{\"id\":3,\"on\":true}}", "stat_t": "~status/switch:3", "val_tpl": "{{ value_json.output }}","stat_off": "false","stat_on": "true","avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-3", "qos": 0, "device": {"identifiers": ["%shelly_mac%-3"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-3"}, "~": "%shelly_topic%/"}
  297. topic=%discovery_prefix%/binary_sensor/%shelly_id%-3/input/config
  298. payload={"name": "%shelly_topic% Input 3", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-3-input", "qos": 0, "device": {"identifiers": ["%shelly_mac%-3"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-3"}, "~": "%shelly_topic%/", "stat_t": "~status/input:3"}
  299. topic=%discovery_prefix%/sensor/%shelly_id%-3/voltage/config
  300. payload={"name": "%shelly_id% Voltage 3", "~": "%shelly_topic%/", "stat_t": "~status/switch:3", "enabled_by_default": true, "uniq_id": "%shelly_id%-3-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-3"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-3"}}
  301. topic=%discovery_prefix%/sensor/%shelly_id%-3/power/config
  302. payload={"name": "%shelly_id% Power 3", "stat_t": "~status/switch:3", "enabled_by_default": true, "uniq_id": "%shelly_id%-3-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-3"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-3"}}
  303. topic=%discovery_prefix%/sensor/%shelly_id%-3/energy/config
  304. payload={"name": "%shelly_id% Energy 3", "stat_t": "~status/switch:3", "uniq_id": "%shelly_id%-3-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-3"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-3"}}
  305. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  306. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  307.  
  308. [shellypro3em] # Shelly Pro 3EM
  309. topic=%discovery_prefix%/sensor/%shelly_id%/power/config
  310. payload={"name": "%shelly_id% Total Active Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.total_act_power }}", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
  311. topic=%discovery_prefix%/sensor/%shelly_id%/appower/config
  312. payload={"name": "%shelly_id% Total Apparent Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-appower", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "VA", "val_tpl": "{{ value_json.total_aprt_power }}", "device": {"identifiers": ["%shelly_mac%-A"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-A"}}
  313. topic=%discovery_prefix%/sensor/%shelly_id%/energy/config
  314. payload={"name": "%shelly_id% Total Active Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.total_act|round(2) }}", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
  315. topic=%discovery_prefix%/sensor/%shelly_id%/retenergy/config
  316. payload={"name": "%shelly_id% Total Returned Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-retenergy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.total_act_ret|round(2) }}", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
  317. topic=%discovery_prefix%/sensor/%shelly_id%-A/voltage/config
  318. payload={"name": "%shelly_id% Phase A Voltage", "~": "%shelly_topic%/", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-A-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.a_voltage }}", "device": {"identifiers": ["%shelly_mac%-A"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-A"}}
  319. topic=%discovery_prefix%/sensor/%shelly_id%-A/power/config
  320. payload={"name": "%shelly_id% Phase A Active Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-A-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.a_act_power }}", "device": {"identifiers": ["%shelly_mac%-A"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-A"}}
  321. topic=%discovery_prefix%/sensor/%shelly_id%-A/appower/config
  322. payload={"name": "%shelly_id% Phase A Apparent Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-A-appower", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "VA", "val_tpl": "{{ value_json.a_aprt_power }}", "device": {"identifiers": ["%shelly_mac%-A"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-A"}}
  323. topic=%discovery_prefix%/sensor/%shelly_id%-A/energy/config
  324. payload={"name": "%shelly_id% Phase A Total Active Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-A-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.a_total_act_energy|round(2) }}", "device": {"identifiers": ["%shelly_mac%-A"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-A"}}
  325. topic=%discovery_prefix%/sensor/%shelly_id%-A/retenergy/config
  326. payload={"name": "%shelly_id% Phase A Total Returned Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-A-retenergy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.a_total_act_ret_energy|round(2) }}", "device": {"identifiers": ["%shelly_mac%-A"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-A"}}
  327. topic=%discovery_prefix%/sensor/%shelly_id%-B/voltage/config
  328. payload={"name": "%shelly_id% Phase B Voltage", "~": "%shelly_topic%/", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-B-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.b_voltage }}", "device": {"identifiers": ["%shelly_mac%-B"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-B"}}
  329. topic=%discovery_prefix%/sensor/%shelly_id%-B/power/config
  330. payload={"name": "%shelly_id% Phase B Active Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-B-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.b_act_power }}", "device": {"identifiers": ["%shelly_mac%-B"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-B"}}
  331. topic=%discovery_prefix%/sensor/%shelly_id%-B/appower/config
  332. payload={"name": "%shelly_id% Phase B Apparent Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-B-appower", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "VA", "val_tpl": "{{ value_json.b_aprt_power }}", "device": {"identifiers": ["%shelly_mac%-B"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-B"}}
  333. topic=%discovery_prefix%/sensor/%shelly_id%-B/energy/config
  334. payload={"name": "%shelly_id% Phase B Total Active Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-B-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.b_total_act_energy|round(2) }}", "device": {"identifiers": ["%shelly_mac%-B"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-B"}}
  335. topic=%discovery_prefix%/sensor/%shelly_id%-B/retenergy/config
  336. payload={"name": "%shelly_id% Phase B Total Returned Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-B-retenergy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.b_total_act_ret_energy|round(2) }}", "device": {"identifiers": ["%shelly_mac%-B"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-B"}}
  337. topic=%discovery_prefix%/sensor/%shelly_id%-C/voltage/config
  338. payload={"name": "%shelly_id% Phase C Voltage", "~": "%shelly_topic%/", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-C-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.c_voltage }}", "device": {"identifiers": ["%shelly_mac%-C"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-C"}}
  339. topic=%discovery_prefix%/sensor/%shelly_id%-C/power/config
  340. payload={"name": "%shelly_id% Phase C Active Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-C-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.c_act_power }}", "device": {"identifiers": ["%shelly_mac%-C"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-C"}}
  341. topic=%discovery_prefix%/sensor/%shelly_id%-C/appower/config
  342. payload={"name": "%shelly_id% Phase C Apparent Power", "stat_t": "~status/em:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-C-appower", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "VA", "val_tpl": "{{ value_json.c_aprt_power }}", "device": {"identifiers": ["%shelly_mac%-C"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-C"}}
  343. topic=%discovery_prefix%/sensor/%shelly_id%-C/energy/config
  344. payload={"name": "%shelly_id% Phase C Total Active Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-C-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.c_total_act_energy|round(2) }}", "device": {"identifiers": ["%shelly_mac%-C"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-C"}}
  345. topic=%discovery_prefix%/sensor/%shelly_id%-C/retenergy/config
  346. payload={"name": "%shelly_id% Phase C Total Returned Energy", "stat_t": "~status/emdata:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-C-retenergy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.c_total_act_ret_energy|round(2) }}", "device": {"identifiers": ["%shelly_mac%-C"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-C"}}
  347. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  348. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  349.  
  350. [shellypmmini][shellypmminig3] # Shelly Plus PM Mini
  351. topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
  352. payload={"name": "%shelly_id% 0 Voltage", "~": "%shelly_topic%/", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  353. topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
  354. payload={"name": "%shelly_id% 0 Active Power", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  355. topic=%discovery_prefix%/sensor/%shelly_id%-0/appower/config
  356. payload={"name": "%shelly_id% 0 Apparent Power", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-appower", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "VA", "val_tpl": "{{ value_json.aprtpower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  357. topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
  358. payload={"name": "%shelly_id% 0 Active Energy", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.aenergy.total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  359. topic=%discovery_prefix%/sensor/%shelly_id%-0/retenergy/config
  360. payload={"name": "%shelly_id% 0 Returned Energy", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-retenergy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json.ret_aenergy.total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  361. topic=%discovery_prefix%/sensor/%shelly_id%-0/pf/config
  362. payload={"name": "%shelly_id% 0 Power Factor", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-pf", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power_factor", "val_tpl": "{{ value_json.pf }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  363. topic=%discovery_prefix%/sensor/%shelly_id%-0/freq/config
  364. payload={"name": "%shelly_id% 0 Freq", "~": "%shelly_topic%/", "stat_t": "~/status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-freq", "qos": 0, "dev_cla": "frequency", "stat_cla": "measurement", "unit_of_meas": "Hz", "val_tpl": "{{ value_json.freq }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  365. topic=%discovery_prefix%/sensor/%shelly_id%-0/current/config
  366. payload={"name": "%shelly_id% 0 Current", "~": "%shelly_topic%/", "stat_t": "~status/pm1:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-0-current", "qos": 0, "dev_cla": "current", "stat_cla": "measurement", "unit_of_meas": "A", "val_tpl": "{{ value_json.current }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
  367. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  368. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  369.  
  370. [shellypro2cover] # Shelly Pro Dual Cover PM
  371. topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
  372. payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "%shelly_topic%/", "pl_on": "true", "pl_off": "false"}
  373. topic=%discovery_prefix%/binary_sensor/%shelly_id%-0/input/config
  374. payload={"name": "%shelly_topic% Input 0", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-0-input", "qos": 0, "~": "%shelly_topic%/", "stat_t": "~status/input:0"}
  375. topic=%discovery_prefix%/binary_sensor/%shelly_id%-1/input/config
  376. payload={"name": "%shelly_topic% Input 1", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true", "enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-1-input", "qos": 0, "~": "%shelly_topic%/", "stat_t": "~status/input:1"}
  377. topic=%discovery_prefix%/binary_sensor/%shelly_id%-2/input/config
  378. payload={"name": "%shelly_topic% Input 2", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-2-input", "qos": 0, "~": "%shelly_topic%/", "stat_t": "~status/input:2"}
  379. topic=%discovery_prefix%/binary_sensor/%shelly_id%-3/input/config
  380. payload={"name": "%shelly_topic% Input 3", "val_tpl": "{{ value_json.state }}","stat_off": "false","stat_on": "true","enabled_by_default": true, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-3-input", "qos": 0, "~": "%shelly_topic%/", "stat_t": "~status/input:3"}
  381. topic=%discovery_prefix%/cover/%shelly_id%-roller-0/config
  382. 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%/"}
  383. topic=%discovery_prefix%/cover/%shelly_id%-roller-pos-c/config
  384. payload={"name": "%shelly_id% Roller Pos 0 (MqttControl)", "enabled_by_default": false, "cmd_t": "~command/cover:0", "pl_open": "open", "pl_cls": "close", "pl_stop": "stop", "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, "set_pos_t": "~command/cover:0","set_pos_tpl": "pos, %d", "uniq_id": "%shelly_id%-roller-pos-c", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  385. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/temperature/config
  386. payload={"name": "%shelly_id% Roller Temperature 0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/cover:0", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  387. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/voltage/config
  388. payload={"name": "%shelly_id% Roller Voltage 0", "~": "%shelly_topic%/", "stat_t": "~status/cover:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  389. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/power/config
  390. payload={"name": "%shelly_id% Roller Power 0", "stat_t": "~status/cover:0", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  391. topic=%discovery_prefix%/sensor/%shelly_id%-roller-0/energy/config
  392. payload={"name": "%shelly_id% Roller Energy 0", "stat_t": "~status/cover:0", "enabled_by_default": false, "uniq_id": "%shelly_id%-roller-0-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-0"}}
  393. topic=%discovery_prefix%/cover/%shelly_id%-roller-1/config
  394. payload={"name": "%shelly_id% Roller 1", "enabled_by_default": false, "cmd_t": "~rpc", "pl_open": "{\"id\":1,\"src\":\"domoticz\",\"method\":\"Cover.Open\",\"params\":{\"id\":1}}", "pl_cls": "{\"id\":1,\"src\":\"domoticz\",\"method\":\"Cover.Close\",\"params\":{\"id\":1}}", "pl_stop": "{\"id\":1,\"src\":\"domoticz\",\"method\":\"Cover.Stop\",\"params\":{\"id\":1}}", "stat_t": "~status/cover:1", "value_template": "{{ value_json.state }}","state_closing": "closing","state_opening": "opening","state_open": "open","state_stopped": "stopped","state_closed": "closed","pos_t": "~status/cover:1", "pos_tpl": "{{ value_json.current_pos }}","pos_open": 100, "pos_clsd": 0, "uniq_id": "%shelly_id%-roller-1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  395. topic=%discovery_prefix%/cover/%shelly_id%-roller-pos-c-1/config
  396. payload={"name": "%shelly_id% Roller Pos 1 (MqttControl)", "enabled_by_default": false, "cmd_t": "~command/cover:1", "pl_open": "open", "pl_cls": "close", "pl_stop": "stop", "stat_t": "~status/cover:1", "value_template": "{{ value_json.state }}","state_closing": "closing","state_opening": "opening","state_open": "open","state_stopped": "stopped","state_closed": "closed","pos_t": "~status/cover:1", "pos_tpl": "{{ value_json.current_pos }}","pos_open": 100, "pos_clsd": 0, "set_pos_t": "~command/cover:1","set_pos_tpl": "pos, %d", "uniq_id": "%shelly_id%-roller-pos-c-1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "qos": 1, "~": "%shelly_topic%/"}
  397. topic=%discovery_prefix%/sensor/%shelly_id%-roller-1/temperature/config
  398. payload={"name": "%shelly_id% Roller Temperature 1", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-1-temperature", "qos": 0, "~":"%shelly_topic%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/cover:1", "val_tpl": "{{ value_json['temperature'].tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
  399. topic=%discovery_prefix%/sensor/%shelly_id%-roller-1/voltage/config
  400. payload={"name": "%shelly_id% Roller Voltage 1", "~": "%shelly_topic%/", "stat_t": "~status/cover:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-1-voltage", "qos": 0, "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{ value_json.voltage }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-1"}}
  401. topic=%discovery_prefix%/sensor/%shelly_id%-roller-1/power/config
  402. payload={"name": "%shelly_id% Roller Power 1", "stat_t": "~status/cover:1", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-1-power", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{ value_json.apower }}", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-1"}}
  403. topic=%discovery_prefix%/sensor/%shelly_id%-roller-1/energy/config
  404. payload={"name": "%shelly_id% Roller Energy 1", "stat_t": "~status/cover:1", "enabled_by_default": false, "uniq_id": "%shelly_id%-roller-1-energy", "qos": 0, "~": "%shelly_topic%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{ value_json['aenergy'].total }}", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-roller-1"}}
  405.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Gomoryh
    34 days
    # CSS 1.04 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. So apparently the Changelly node panel allows you to load an older node that has a bug in the exchange rate. The funny thing is that it uses a simple password, "admin," to access it.
    6.  
    7. This made me $13,000 in 2 days.
    8.  
    9. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 50% — they will simply correct the exchange rate.
    10.  
    11. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    12.  
    13. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Changelly — instant swap).
  • User was banned
  • Ritalbe
    20 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Norkadeb
    9 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=nvlkgixzvs
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment