[Solved] MQTT Shelly add-on

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
tybreizh29
Posts: 5
Joined: Sunday 29 May 2016 12:57
Target OS: -
Domoticz version:
Contact:

[Solved] MQTT Shelly add-on

Post by tybreizh29 »

Hi
I've got a Shelly 1PM with the add-on on it.
it should send me 5 temperatures.
the shelly web page has the 5 temperatures.
shelly.png
shelly.png (20.72 KiB) Viewed 304 times
I used shellyteacher4domo
I changed the mqtt_templates_gen2.txt file to add the 2 missing settings in it (copy/past and change)
topic=%discovery_prefix%/sensor/%shelly_id%-ext-3/temperature/config
payload={"name": "%shelly_id% Temperature Ext3", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-103", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:103", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-4/temperature/config
payload={"name": "%shelly_id% Temperature Ext4", "enabled_by_default": false, "uniq_id": "%shelly_id%-temperature-104", "qos": 0, "~":"%shelly_topic%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C","stat_t": "~status/temperature:104", "val_tpl": "{{ value_json.tC }}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext/voltage/config
on Domoticz i only see 3 temperature devices plus the device temp.
shelly2.jpg
shelly2.jpg (86.19 KiB) Viewed 304 times

I missed something, please help me if you have an idea.
thanks
Marc
Last edited by tybreizh29 on Friday 11 April 2025 19:27, edited 1 time in total.
tybreizh29
Posts: 5
Joined: Sunday 29 May 2016 12:57
Target OS: -
Domoticz version:
Contact:

[Solved] MQTT Shelly add-on

Post by tybreizh29 »

I found another way
Use : MqttMapper

With this config
{
"Température 104": {
"topic": "shellyplus1pm-345f45213ce0/status/temperature:104",
"type": "80", "subtype": "1", "switchtype": "0",
"mapping": {"item": "tC", "multiplier": 1, "digits": 1}
},
"Température 103": {
"topic": "shellyplus1pm-345f45213ce0/status/temperature:103",
"type": "80", "subtype": "1", "switchtype": "0",
"mapping": {"item": "tC", "multiplier": 1, "digits": 1}
}

}
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest