Shellies Discovery Script

home assistant has discovered the device, but i seem to be missing the ability to turn the light on/off or adjust dimmer.

Any error in the log? If not, show me debug log for python_script.

no errors from what i can tell

2020-07-01 23:04:51 INFO (SyncWorker_14) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-F27AD6', 'mac': '98F4ABF27AD6', 'fw_ver': '20200601-123334/v1.7.0@d7961837'}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-F27AD6, mac: 98f4abf27ad6, fw_ver: 20200601-123334/v1.7.0@d7961837
2020-07-01 23:04:51 INFO (SyncWorker_15) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer-CC50E3F3452F', 'mac': 'CC50E3F3452F', 'fw_ver': '20200601-123355/v1.7.0@d7961837'}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-F27AD6-relay-0/config {"name": "Shelly 1PM F27AD6 Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-relay-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer-CC50E3F3452F, mac: cc50e3f3452f, fw_ver: 20200601-123355/v1.7.0@d7961837
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer-CC50E3F3452F-temperature/config {"name": "Shelly Dimmer CC50E3F3452F Temperature", "stat_t": "~temperature", "exp_aft": 43200, "frc_upd": "False", "uniq_id": "shellydimmer-cc50e3f3452f-temperature", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "unit_of_meas": "°C", "dev_cla": "temperature", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value|float|round(1)}}"}
2020-07-01 23:04:51 INFO (SyncWorker_12) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-E09806950890', 'mac': 'E09806950890', 'fw_ver': '20200615-133340/v1.7.2@e39e9c86'}
2020-07-01 23:04:51 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-E09806950890, mac: e09806950890, fw_ver: 20200615-133340/v1.7.2@e39e9c86
2020-07-01 23:04:51 INFO (SyncWorker_13) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-E0980695A884', 'mac': 'E0980695A884', 'fw_ver': '20200615-133340/v1.7.2@e39e9c86'}
2020-07-01 23:04:51 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-E0980695A884, mac: e0980695a884, fw_ver: 20200615-133340/v1.7.2@e39e9c86
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-F27AD6-relay-0/config 
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-overtemperature/config {"name": "Shelly Dimmer CC50E3F3452F Overtemperature", "stat_t": "~overtemperature", "uniq_id": "shellydimmer-cc50e3f3452f-overtemperature", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "heat"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-F27AD6-relay-0/config 
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-overload/config {"name": "Shelly Dimmer CC50E3F3452F Overload", "stat_t": "~overload", "uniq_id": "shellydimmer-cc50e3f3452f-overload", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "power"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-loaderror/config {"name": "Shelly Dimmer CC50E3F3452F Loaderror", "stat_t": "~loaderror", "uniq_id": "shellydimmer-cc50e3f3452f-loaderror", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-power/config 
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-energy/config 
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-input-0/config {"name": "Shelly Dimmer CC50E3F3452F Input 0", "stat_t": "~input/0", "uniq_id": "shellydimmer-cc50e3f3452f-input-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-input-1/config {"name": "Shelly Dimmer CC50E3F3452F Input 1", "stat_t": "~input/1", "uniq_id": "shellydimmer-cc50e3f3452f-input-1", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-power-0/config {"name": "Shelly 1PM F27AD6 Power 0", "stat_t": "~relay/0/power", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shelly1pm-f27ad6-relay-power-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-longpush-0/config {"name": "Shelly Dimmer CC50E3F3452F Longpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer-cc50e3f3452f-longpush-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-energy-0/config {"name": "Shelly 1PM F27AD6 Energy 0", "stat_t": "~relay/0/energy", "unit_of_meas": "kWh", "val_tpl": "{{(value|float/60/1000)|round(2)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shelly1pm-f27ad6-relay-energy-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-input-0/config {"name": "Shelly 1PM F27AD6 Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-input-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "pl_on": "1", "pl_off": "0"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-longpush-1/config {"name": "Shelly Dimmer CC50E3F3452F Longpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer-cc50e3f3452f-longpush-1", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-longpush-0/config {"name": "Shelly 1PM F27AD6 Longpush 0", "stat_t": "~longpush/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-longpush-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "off_delay": 2, "pl_on": "1", "pl_off": "0"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-shortpush-0/config {"name": "Shelly 1PM F27AD6 Shortpush 0", "stat_t": "~longpush/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-shortpush-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "off_delay": 2, "pl_on": "0", "pl_off": "1"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-shortpush-0/config {"name": "Shelly Dimmer CC50E3F3452F Shortpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer-cc50e3f3452f-shortpush-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-overpower-0/config {"name": "Shelly 1PM F27AD6 Overpower 0", "stat_t": "~relay/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-overpower-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "val_tpl": "{% if value == 'overpower' %}ON{% else %}OFF{% endif %}", "dev_cla": "power"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-shortpush-1/config {"name": "Shelly Dimmer CC50E3F3452F Shortpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer-cc50e3f3452f-shortpush-1", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer-CC50E3F3452F-0/config {"schema":"template","name":"Shelly Dimmer CC50E3F3452F Light 0","cmd_t":"~light/0/set","stat_t":"~light/0/status","avty_t":"~online","pl_avail":"true","pl_not_avail":"false","cmd_on_tpl":"{\"turn\":\"on\"{% if brightness is defined %},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{% endif %}}","cmd_off_tpl":"{\"turn\":\"off\"}","stat_tpl":"{% if value_json.ison %}on{% else %}off{% endif %}","bri_tpl":"{{value_json.brightness|float|multiply(2.55)|round}}","uniq_id":"shellydimmer-cc50e3f3452f-light-0","qos":"0","dev": {"ids": ["cc50e3f3452f"],"name":"Shelly Dimmer CC50E3F3452F","mdl":"Shelly Dimmer","sw":"20200601-123355/v1.7.0@d7961837","mf":"Allterco Robotics"},"~":"shellies/shellydimmer-CC50E3F3452F/"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-temperature/config {"name": "Shelly 1PM F27AD6 Temperature", "stat_t": "~temperature", "exp_aft": 43200, "frc_upd": "False", "uniq_id": "shelly1pm-f27ad6-temperature", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "unit_of_meas": "°C", "dev_cla": "temperature", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value|float|round(1)}}"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer-CC50E3F3452F-white-power-0/config {"name": "Shelly Dimmer CC50E3F3452F Power 0", "stat_t": "~light/0/power", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shellydimmer-cc50e3f3452f-white-power-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/"}
2020-07-01 23:04:51 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-overtemperature/config {"name": "Shelly 1PM F27AD6 Overtemperature", "stat_t": "~overtemperature", "uniq_id": "shelly1pm-f27ad6-overtemperature", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "heat"}
2020-07-01 23:04:51 DEBUG (SyncWorker_15) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer-CC50E3F3452F-white-energy-0/config {"name": "Shelly Dimmer CC50E3F3452F Energy 0", "stat_t": "~light/0/energy", "unit_of_meas": "kWh", "val_tpl": "{{(value|float/60/1000)|round(2)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shellydimmer-cc50e3f3452f-white-energy-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/"}
``

There is no config topics for shellydimmer2-E09806950890 in the log. Save the log after Dimmer 2 restart. Maybe you have to refresh device page (Configuration -> Integrations -> MQTT -> Shelly Dimmer 2)? Sometimes HA doesn’t show all entities without refresh.

do you mean refresh the devices page in my web browser ? Tried that, also restarted home assistant.

this any better ?

2020-07-02 16:14:19 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
2020-07-02 16:14:19 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 19 minutes
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Initialized trigger Shellies Announce
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Initialized trigger Turn lights on at Sunset
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Initialized trigger New Automation
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Executing Shellies Announce
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Shellies Announce: Running script
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Shellies Announce: Executing step call service
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Initialized trigger Shellies Discovery
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Executing Shellies Discovery
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Shellies Discovery: Running script
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Shellies Discovery: Executing step call service
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Executing Shellies Discovery
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Shellies Discovery: Executing step call service
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Executing Shellies Discovery
2020-07-02 16:14:21 INFO (MainThread) [homeassistant.components.automation] Shellies Discovery: Executing step call service
2020-07-02 16:14:21 INFO (SyncWorker_2) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-E0980695A884', 'mac': 'E0980695A884', 'fw_ver': '20200615-133340/v1.7.2@e39e9c86'}
2020-07-02 16:14:21 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-E0980695A884, mac: e0980695a884, fw_ver: 20200615-133340/v1.7.2@e39e9c86
2020-07-02 16:14:21 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-E0980695A884-temperature/config {"name": "Shelly Dimmer 2 E0980695A884 Temperature", "stat_t": "~temperature", "exp_aft": 43200, "frc_upd": "False", "uniq_id": "shellydimmer2-e0980695a884-temperature", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "unit_of_meas": "°C", "dev_cla": "temperature", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value|float|round(1)}}"}
2020-07-02 16:14:21 INFO (SyncWorker_5) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer-CC50E3F3452F', 'mac': 'CC50E3F3452F', 'fw_ver': '20200601-123355/v1.7.0@d7961837'}
2020-07-02 16:14:21 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer-CC50E3F3452F, mac: cc50e3f3452f, fw_ver: 20200601-123355/v1.7.0@d7961837
2020-07-02 16:14:21 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer-CC50E3F3452F-temperature/config {"name": "Shelly Dimmer CC50E3F3452F Temperature", "stat_t": "~temperature", "exp_aft": 43200, "frc_upd": "False", "uniq_id": "shellydimmer-cc50e3f3452f-temperature", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "unit_of_meas": "°C", "dev_cla": "temperature", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value|float|round(1)}}"}
2020-07-02 16:14:21 INFO (SyncWorker_13) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-F27AD6', 'mac': '98F4ABF27AD6', 'fw_ver': '20200601-123334/v1.7.0@d7961837'}
2020-07-02 16:14:21 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-F27AD6, mac: 98f4abf27ad6, fw_ver: 20200601-123334/v1.7.0@d7961837
2020-07-02 16:14:21 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-F27AD6-relay-0/config {"name": "Shelly 1PM F27AD6 Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-relay-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-overtemperature/config {"name": "Shelly Dimmer 2 E0980695A884 Overtemperature", "stat_t": "~overtemperature", "uniq_id": "shellydimmer2-e0980695a884-overtemperature", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "heat"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-F27AD6-relay-0/config
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-overtemperature/config {"name": "Shelly Dimmer CC50E3F3452F Overtemperature", "stat_t": "~overtemperature", "uniq_id": "shellydimmer-cc50e3f3452f-overtemperature", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "heat"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-overload/config {"name": "Shelly Dimmer 2 E0980695A884 Overload", "stat_t": "~overload", "uniq_id": "shellydimmer2-e0980695a884-overload", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "power"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-overload/config {"name": "Shelly Dimmer CC50E3F3452F Overload", "stat_t": "~overload", "uniq_id": "shellydimmer-cc50e3f3452f-overload", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "power"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-F27AD6-relay-0/config
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-loaderror/config {"name": "Shelly Dimmer CC50E3F3452F Loaderror", "stat_t": "~loaderror", "uniq_id": "shellydimmer-cc50e3f3452f-loaderror", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-loaderror/config {"name": "Shelly Dimmer 2 E0980695A884 Loaderror", "stat_t": "~loaderror", "uniq_id": "shellydimmer2-e0980695a884-loaderror", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-power/config
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-input-0/config {"name": "Shelly Dimmer 2 E0980695A884 Input 0", "stat_t": "~input/0", "uniq_id": "shellydimmer2-e0980695a884-input-0", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-input-1/config {"name": "Shelly Dimmer 2 E0980695A884 Input 1", "stat_t": "~input/1", "uniq_id": "shellydimmer2-e0980695a884-input-1", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-input-0/config {"name": "Shelly Dimmer CC50E3F3452F Input 0", "stat_t": "~input/0", "uniq_id": "shellydimmer-cc50e3f3452f-input-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-energy/config
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-input-1/config {"name": "Shelly Dimmer CC50E3F3452F Input 1", "stat_t": "~input/1", "uniq_id": "shellydimmer-cc50e3f3452f-input-1", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-longpush-0/config {"name": "Shelly Dimmer 2 E0980695A884 Longpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer2-e0980695a884-longpush-0", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-power-0/config {"name": "Shelly 1PM F27AD6 Power 0", "stat_t": "~relay/0/power", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shelly1pm-f27ad6-relay-power-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-longpush-0/config {"name": "Shelly Dimmer CC50E3F3452F Longpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer-cc50e3f3452f-longpush-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-longpush-1/config {"name": "Shelly Dimmer 2 E0980695A884 Longpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer2-e0980695a884-longpush-1", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-energy-0/config {"name": "Shelly 1PM F27AD6 Energy 0", "stat_t": "~relay/0/energy", "unit_of_meas": "kWh", "val_tpl": "{{(value|float/60/1000)|round(2)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shelly1pm-f27ad6-relay-energy-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-longpush-1/config {"name": "Shelly Dimmer CC50E3F3452F Longpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer-cc50e3f3452f-longpush-1", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-shortpush-0/config {"name": "Shelly Dimmer 2 E0980695A884 Shortpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer2-e0980695a884-shortpush-0", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-input-0/config {"name": "Shelly 1PM F27AD6 Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-input-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "pl_on": "1", "pl_off": "0"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-shortpush-0/config {"name": "Shelly Dimmer CC50E3F3452F Shortpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer-cc50e3f3452f-shortpush-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_delay": 2}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-E0980695A884-shortpush-1/config {"name": "Shelly Dimmer 2 E0980695A884 Shortpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer2-e0980695a884-shortpush-1", "qos": 0, "dev": {"ids": ["e0980695a884"], "name": "Shelly Dimmer 2 E0980695A884", "mdl": "Shelly Dimmer 2", "sw": "20200615-133340/v1.7.2@e39e9c86", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-E0980695A884/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-longpush-0/config {"name": "Shelly 1PM F27AD6 Longpush 0", "stat_t": "~longpush/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-longpush-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "off_delay": 2, "pl_on": "1", "pl_off": "0"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer2-E0980695A884-white-0/config
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer-CC50E3F3452F-shortpush-1/config {"name": "Shelly Dimmer CC50E3F3452F Shortpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer-cc50e3f3452f-shortpush-1", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-shortpush-0/config {"name": "Shelly 1PM F27AD6 Shortpush 0", "stat_t": "~longpush/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-shortpush-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "off_delay": 2, "pl_on": "0", "pl_off": "1"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-E0980695A884-white-power-0/config
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-overpower-0/config {"name": "Shelly 1PM F27AD6 Overpower 0", "stat_t": "~relay/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-f27ad6-overpower-0", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "val_tpl": "{% if value == 'overpower' %}ON{% else %}OFF{% endif %}", "dev_cla": "power"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer-CC50E3F3452F-0/config {"schema":"template","name":"Shelly Dimmer CC50E3F3452F Light 0","cmd_t":"~light/0/set","stat_t":"~light/0/status","avty_t":"~online","pl_avail":"true","pl_not_avail":"false","cmd_on_tpl":"{\"turn\":\"on\"{% if brightness is defined %},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{% endif %}}","cmd_off_tpl":"{\"turn\":\"off\"}","stat_tpl":"{% if value_json.ison %}on{% else %}off{% endif %}","bri_tpl":"{{value_json.brightness|float|multiply(2.55)|round}}","uniq_id":"shellydimmer-cc50e3f3452f-light-0","qos":"0","dev": {"ids": ["cc50e3f3452f"],"name":"Shelly Dimmer CC50E3F3452F","mdl":"Shelly Dimmer","sw":"20200601-123355/v1.7.0@d7961837","mf":"Allterco Robotics"},"~":"shellies/shellydimmer-CC50E3F3452F/"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer-CC50E3F3452F-white-power-0/config {"name": "Shelly Dimmer CC50E3F3452F Power 0", "stat_t": "~light/0/power", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shellydimmer-cc50e3f3452f-white-power-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/"}
2020-07-02 16:14:22 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer-CC50E3F3452F-white-energy-0/config {"name": "Shelly Dimmer CC50E3F3452F Energy 0", "stat_t": "~light/0/energy", "unit_of_meas": "kWh", "val_tpl": "{{(value|float/60/1000)|round(2)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shellydimmer-cc50e3f3452f-white-energy-0", "qos": 0, "dev": {"ids": ["cc50e3f3452f"], "name": "Shelly Dimmer CC50E3F3452F", "mdl": "Shelly Dimmer", "sw": "20200601-123355/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer-CC50E3F3452F/"}
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-F27AD6-temperature/config {"name": "Shelly 1PM F27AD6 Temperature", "stat_t": "~temperature", "exp_aft": 43200, "frc_upd": "False", "uniq_id": "shelly1pm-f27ad6-temperature", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "unit_of_meas": "°C", "dev_cla": "temperature", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value|float|round(1)}}"}
2020-07-02 16:14:22 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-E0980695A884-white-energy-0/config
2020-07-02 16:14:22 DEBUG (SyncWorker_13) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-F27AD6-overtemperature/config {"name": "Shelly 1PM F27AD6 Overtemperature", "stat_t": "~overtemperature", "uniq_id": "shelly1pm-f27ad6-overtemperature", "qos": 0, "dev": {"ids": ["98f4abf27ad6"], "name": "Shelly 1PM F27AD6", "mdl": "Shelly 1PM", "sw": "20200601-123334/v1.7.0@d7961837", "mf": "Allterco Robotics"}, "~": "shellies/shelly1pm-F27AD6/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "heat"}

Yes, that’s better. Fix is ready https://github.com/bieniu/ha-shellies-discovery/releases/tag/0.25.1

latest fix is now picking up the light on function but its the light is not responding to the command

So show me command topics.

do you mean this?

No, I mean MQTT command topics. There is no documentation for Dimmer 2 on Shelly API page and I don’t have a device. So without users help I can’t do anything.

where can i find those?

Nowhere, you can try to send command topic from old Dimmer and watch what works, what doesn’t.

Hi
Sorry, i’m new to this and maybe not understanding exactly what you are asking me to send you. When you say send command topic from old Dimmer, what is the best way to find this to send it to you ?

Try send (i.e. via MQTT Explorer) this topics:
shellies/shellydimmer2-E0980695A884/light/0/set with payload {"turn": "on"}
shellies/shellydimmer2-E0980695A884/light/0/set with payload {"turn": "off"}
shellies/shellydimmer2-E0980695A884/light/0/set with payload {"turn": "on", "brightness": 100}
shellies/shellydimmer2-E0980695A884/light/0/set with payload {"turn": "on", "brightness": 50}

What I still don’t understand is why the Shelly company does not update this info sooner so we don’t have to reverse engineer the protocol… :man_facepalming:

looks like a typo in the topic ?
shellies/shellydimmer2-E0980695A884/white/0/set {“turn”:“off”}
{“turn”:“on”,“brightness”:33}

old shelly dimmer
shellies/shellydimmer-CC50E3F3452F/light/0/set {“turn”:“off”}
{“turn”:“on”,“brightness”:50}

Good catch! Should be fixed now https://github.com/bieniu/ha-shellies-discovery/releases/tag/0.25.2

working now, well done and thanks for the help.

last question, the old topic / entities that didnt work are still in home-assistant, so i have what look like duplicates now. What is the best way of removing them or removing the entire device so that it can refresh from scratch again?

You have to remove device from HA and than restart HA or run announce automation twice.