Hallo... ich Versuche über Homebride meine Gosund SP111 Steckdosen die mit Tasmota geflasht sind zu steuern.... Leider bisher ohne Erfolg.
Ich bin neu im Thema Homebridge und auch neu im Thema MQTT, hoffe das euch hier schnell mein Fehler gefunden wird.
Die MQTT Einstellungen in der Steckdose sind im Anhang.
Log der Steckdose:
20:15:35 RSL: homeassistant/sensor/03ED0F_ENERGY_Power/config = {"name":"Termomix ENERGY Power","stat_t":"tele/tasmota/SENSOR","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"03ED0F_ENERGY_Power","dev":{"ids":["03ED0F"]},"unit_of_meas":"W","dev_cla":"power","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Power']}}"}
20:15:35 RSL: homeassistant/sensor/03ED0F_ENERGY_ApparentPower/config = {"name":"Termomix ENERGY ApparentPower","stat_t":"tele/tasmota/SENSOR","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"03ED0F_ENERGY_ApparentPower","dev":{"ids":["03ED0F"]},"unit_of_meas":"VA","dev_cla":"power","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['ApparentPower']}}"}
20:15:35 RSL: homeassistant/sensor/03ED0F_ENERGY_ReactivePower/config = {"name":"Termomix ENERGY ReactivePower","stat_t":"tele/tasmota/SENSOR","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"03ED0F_ENERGY_ReactivePower","dev":{"ids":["03ED0F"]},"unit_of_meas":"VAr","dev_cla":"power","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['ReactivePower']}}"}
20:15:35 RSL: homeassistant/sensor/03ED0F_ENERGY_Factor/config = {"name":"Termomix ENERGY Factor","stat_t":"tele/tasmota/SENSOR","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"03ED0F_ENERGY_Factor","dev":{"ids":["03ED0F"]},"unit_of_meas":"Cos φ","ic":"mdi:alpha-f-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Factor']}}"}
20:15:35 RSL: homeassistant/sensor/03ED0F_ENERGY_Voltage/config = {"name":"Termomix ENERGY Voltage","stat_t":"tele/tasmota/SENSOR","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"03ED0F_ENERGY_Voltage","dev":{"ids":["03ED0F"]},"unit_of_meas":"V","ic":"mdi:alpha-v-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Voltage']}}"}
20:15:35 RSL: homeassistant/sensor/03ED0F_ENERGY_Current/config = {"name":"Termomix ENERGY Current","stat_t":"tele/tasmota/SENSOR","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"03ED0F_ENERGY_Current","dev":{"ids":["03ED0F"]},"unit_of_meas":"A","ic":"mdi:alpha-a-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Current']}}"}
20:15:35 RSL: homeassistant/switch/03ED0F_RL_1/config = {"name":"Termomix","stat_t":"tele/tasmota/STATE","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"cmnd/tasmota/POWER","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","uniq_id":"03ED0F_RL_1","dev":{"ids":["03ED0F"]}}
20:15:35 RSL: homeassistant/sensor/03ED0F_status/config = {"name":"Termomix status","stat_t":"tele/tasmota/HASS_STATE","avty_t":"tele/tasmota/LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attr_t":"tele/tasmota/HASS_STATE","unit_of_meas":"%","val_tpl":"{{value_json['RSSI']}}","ic":"mdi:information-outline","uniq_id":"03ED0F_status","dev":{"ids":["03ED0F"],"name":"Termomix","mdl":"Gosund SP111","sw":"9.2.0(tasmota)","mf":"Tasmota"}}
20:15:53 RSL: tele/tasmota/STATE = {"Time":"2021-01-08T20:15:53","Uptime":"0T00:00:32","UptimeSec":32,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"OFF","Wifi":{"AP":1,"SSId":"GiGaGamBoa2.4","BSSId":"DC:39:6F:B9:06:B5","Channel":11,"RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:03"}}
20:15:53 RSL: stat/tasmota/RESULT = {"POWER":"OFF"}
20:15:53 RSL: stat/tasmota/POWER = OFF
20:15:55 RSL: tele/tasmota/STATE = {"Time":"2021-01-08T20:15:55","Uptime":"0T00:00:34","UptimeSec":34,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Wifi":{"AP":1,"SSId":"GiGaGamBoa2.4","BSSId":"DC:39:6F:B9:06:B5","Channel":11,"RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:03"}}
20:15:55 RSL: stat/tasmota/RESULT = {"POWER":"ON"}
20:15:55 RSL: stat/tasmota/POWER = ON
Auszug aus der Konfiguration:
{
"type": "outlet",
"name": "Termomix",
"username": "home",
"password": "000",
"mqttPubOptions": {
"retain": true
},
"topics": {
"getInUse": "tele/tasmota/STATE",
"getOn": "stat/tasmota/POWER",
"setOn": "cmnd/tasmota/POWER",
"getWatts": {
"topic": "tele/tasmota/SENSOR",
"apply": "return JSON.parse(message).ENERGY.Power;"
},
"getVolts": {
"topic": "tele/tasmota/SENSOR",
"apply": "return JSON.parse(message).ENERGY.Voltage;"
},
"getAmperes": {
"topic": "tele/tasmota/SENSOR",
"apply": "return JSON.parse(message).ENERGY.Current;"
}
},
"history": "true",
"onValue": "ON",
"offValue": "OFF",
"startPub": [
{
"topic": "cmnd/tasmota/POWER",
"message": "ON"
},
{
"topic": "stat/tasmota/POWER",
"message": ""
}
],
"mqttOptions": {
"keepalive": 30
},
"logMqtt": true,
"onlineValue": "Online",
"manufacturer": "Gosund",
"model": "SP111",
"serialNumber": "192.168.2.33",
"accessory": "mqttthing"
}
Danke für eure Hilfe!
Max