Open pizzulicchio opened 3 years ago
if you can log all mqtt messages of the device from device boot until the first tele message would help. Maybe also mqtt messages while moving the sliders and toggling the buttons.
Sure! Here for you some infos:
Switching ON and OFF the POWER and the LED
16:21:06 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:21:06","Uptime":"0T00:05:00","UptimeSec":300,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":20,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","Dimmer":51,"Color":"7,130,0","HSBColor":"117,100,51","Channel":[3,51,0],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":52,"Signal":-74,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:21:06 MQT: MYHOME/Switch/AVATTO2/stat/RESULT = {"POWER1":"ON"} 16:21:06 MQT: MYHOME/Switch/AVATTO2/stat/POWER1 = ON 16:21:07 MQT: domoticz/in = {"idx":12,"nvalue":1,"svalue":"51","Battery":100,"RSSI":5} 16:21:07 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:21:07","Uptime":"0T00:05:01","UptimeSec":301,"Heap":24,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":21,"MqttCount":1,"POWER1":"ON","POWER2":"ON","Dimmer":51,"Color":"7,130,0","HSBColor":"117,100,51","Channel":[3,51,0],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":52,"Signal":-74,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:21:07 MQT: MYHOME/Switch/AVATTO2/stat/RESULT = {"POWER2":"ON"} 16:21:07 MQT: MYHOME/Switch/AVATTO2/stat/POWER2 = ON 16:21:08 MQT: MYHOME/Switch/AVATTO2/tele/HASS_STATE = {"Version":"8.4.0(tasmota)","BuildDateTime":"2020-07-29T12:05:28","Module or Template":"Avatto OT08","RestartReason":"Software/System restart","Uptime":"0T00:05:02","Hostname":"AVATTO2","IPAddress":"10.0.10.112","RSSI":"54","Signal (dBm)":"-73","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:05","MqttCount":1,"LoadAvg":39} 16:21:08 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:21:08","Uptime":"0T00:05:02","UptimeSec":302,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":42,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Dimmer":51,"Color":"7,130,0","HSBColor":"117,100,51","Channel":[3,51,0],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:21:08 MQT: MYHOME/Switch/AVATTO2/stat/RESULT = {"POWER1":"OFF"} 16:21:08 MQT: MYHOME/Switch/AVATTO2/stat/POWER1 = OFF 16:21:09 MQT: domoticz/in = {"idx":12,"nvalue":0,"svalue":"51","Battery":100,"RSSI":5} 16:21:09 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:21:09","Uptime":"0T00:05:03","UptimeSec":303,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":57,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Dimmer":51,"Color":"7,130,0","HSBColor":"117,100,51","Channel":[3,51,0],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:21:09 MQT: MYHOME/Switch/AVATTO2/stat/RESULT = {"POWER2":"OFF"} 16:21:09 MQT: MYHOME/Switch/AVATTO2/stat/POWER2 = OFF
Changing color
16:21:57 MQT: MYHOME/Switch/AVATTO2/stat/RESULT = {"POWER2":"ON","Dimmer":51,"Color":"130,0,2","HSBColor":"359,100,51","Channel":[51,0,1]} 16:21:58 MQT: domoticz/in = {"idx":12,"nvalue":1,"svalue":"100","Battery":100,"RSSI":5} 16:21:58 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:21:58","Uptime":"0T00:05:52","UptimeSec":352,"Heap":24,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":44,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Dimmer":100,"Color":"255,0,4","HSBColor":"359,100,100","Channel":[100,0,2],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:21:58 MQT: MYHOME/Switch/AVATTO2/stat/RESULT = {"POWER2":"ON","Dimmer":100,"Color":"255,0,4","HSBColor":"359,100,100","Channel":[100,0,2]} 16:22:02 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:22:02","Uptime":"0T00:05:56","UptimeSec":356,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":79,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Dimmer":100,"Color":"255,0,4","HSBColor":"359,100,100","Channel":[100,0,2],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:22:02 MQT: MYHOME/Switch/AVATTO2/tele/SENSOR = {"Time":"2020-08-03T16:22:02","ENERGY":{"TotalStartTime":"2020-07-30T21:29:03","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":237,"Current":0.000}}
FIRST BOOT
00:00:00 CFG: Loaded from flash at F4, Count 134 00:00:00 Project tasmota AVATTO2 Version 8.4.0(tasmota)-2_7_2_1 00:00:00 WIF: Connecting to AP1 LABWIFI Channel 5 BSSId 14:91:82:BB:27:E6 in mode 11N as AVATTO2... 00:00:03 WIF: Connected 16:23:48 HTP: Web server active on AVATTO2 with IP address 10.0.10.112 16:23:51 MQT: homeassistant/sensor/9539A2_ENERGY_Factor/config = {"name":"AVATTO2 ENERGY Factor","stat_t":"MYHOME/Switch/AVATTO2/tele/SENSOR","avty_t":"MYHOME/Switch/AVATTO2/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"9539A2_ENERGY_Factor","dev":{"ids":["9539A2"]},"unit_of_meas":"Cos φ","ic":"mdi:alpha-f-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Factor']}}"} (retained) 16:23:51 MQT: homeassistant/sensor/9539A2_ENERGY_Voltage/config = {"name":"AVATTO2 ENERGY Voltage","stat_t":"MYHOME/Switch/AVATTO2/tele/SENSOR","avty_t":"MYHOME/Switch/AVATTO2/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"9539A2_ENERGY_Voltage","dev":{"ids":["9539A2"]},"unit_of_meas":"V","ic":"mdi:alpha-v-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Voltage']}}"} (retained) 16:23:51 MQT: homeassistant/sensor/9539A2_ENERGY_Current/config = {"name":"AVATTO2 ENERGY Current","stat_t":"MYHOME/Switch/AVATTO2/tele/SENSOR","avty_t":"MYHOME/Switch/AVATTO2/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"9539A2_ENERGY_Current","dev":{"ids":["9539A2"]},"unit_of_meas":"A","ic":"mdi:alpha-a-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Current']}}"} (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_1/config = (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_1/config = {"name":"AVATTO2 AVATTO2","stat_t":"MYHOME/Switch/AVATTO2/tele/STATE","avty_t":"MYHOME/Switch/AVATTO2/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"MYHOME/Switch/AVATTO2/cmnd/POWER1","val_tpl":"{{value_json.POWER1}}","pl_off":"OFF","pl_on":"ON","uniq_id":"9539A2_RL_1","dev":{"ids":["9539A2"]}} (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_2/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_2/config = {"name":"AVATTO2 AVATTO2","stat_t":"MYHOME/Switch/AVATTO2/tele/STATE","avty_t":"MYHOME/Switch/AVATTO2/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"MYHOME/Switch/AVATTO2/cmnd/POWER2","val_tpl":"{{value_json.POWER2}}","pl_off":"OFF","pl_on":"ON","uniq_id":"9539A2_LI_2","dev":{"ids":["9539A2"]},"bri_cmd_t":"MYHOME/Switch/AVATTO2/cmnd/Dimmer","bri_stat_t":"MYHOME/Switch/AVATTO2/tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","rgb_cmd_t":"MYHOME/Switch/AVATTO2/cmnd/Color2","rgb_stat_t":"MYHOME/Switch/AVATT ... (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_3/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_3/config = (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_4/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_4/config = (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_5/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_5/config = (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_6/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_6/config = (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_7/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_7/config = (retained) 16:23:51 MQT: homeassistant/switch/9539A2_RL_8/config = (retained) 16:23:51 MQT: homeassistant/light/9539A2_LI_8/config = (retained) 16:23:51 MQT: homeassistant/sensor/9539A2_status/config = {"name":"AVATTO2 status","stat_t":"MYHOME/Switch/AVATTO2/tele/HASS_STATE","avty_t":"MYHOME/Switch/AVATTO2/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attr_t":"MYHOME/Switch/AVATTO2/tele/HASS_STATE","unit_of_meas":"%","val_tpl":"{{value_json['RSSI']}}","ic":"mdi:information-outline","uniq_id":"9539A2_status","dev":{"ids":["9539A2"],"name":"AVATTO2","mdl":"Avatto OT08","sw":"8.4.0(tasmota)","mf":"Tasmota"}} (retained) 16:23:53 MQT: MYHOME/Switch/AVATTO2/tele/STATE = {"Time":"2020-08-03T16:23:53","Uptime":"0T00:00:11","UptimeSec":11,"Heap":27,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":104,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Dimmer":100,"Color":"255,0,4","HSBColor":"359,100,100","Channel":[100,0,2],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LABWIFI","BSSId":"14:91:82:BB:27:E6","Channel":5,"RSSI":58,"Signal":-71,"LinkCount":1,"Downtime":"0T00:00:05"}} 16:23:53 MQT: MYHOME/Switch/AVATTO2/tele/SENSOR = {"Time":"2020-08-03T16:23:53","ENERGY":{"TotalStartTime":"2020-07-30T21:29:03","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":237,"Current":0.000}} 16:23:59 MQT: MYHOME/Switch/AVATTO2/tele/HASS_STATE = {"Version":"8.4.0(tasmota)","BuildDateTime":"2020-07-29T12:05:28","Module or Template":"Avatto OT08","RestartReason":"Software/System restart","Uptime":"0T00:00:17","Hostname":"AVATTO2","IPAddress":"10.0.10.112","RSSI":"56","Signal (dBm)":"-72","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:05","MqttCount":1,"LoadAvg":99}
Ok, that is all I need regarding logs. What's left is
1) The two buttons are working. "Toggle 1" is the power on/off button. "Toggle 2" it's the light's LED on/off. Both toggle are labeled from domoticz as a standard switch The RGB led should be different. Isn't true ? Here the screen
The AVATTO 2 2 it's the button created from your plugin. The RGB Switch Avatto 2 it's the button created from me using the IDX into the domoticz section of tasmota web interface.
i don't have understood well the others two question, but all that i have to/'d like to tell you it's explained with that screen. Sorry for my not so good english.
Regarding the two questions I hope this clears it up a bit:: I do not implement these domoticz controls like switches or sensors, I just create them from existing domoticz "templates" and then feed them with input from tasmota status messages and translate their output to valid tasmota commands. So the questions reformulated are: does the RGB switch that you created already work as you expect? Then I can use it as a template.
P.S. your english is good, I understand what you mean. If you want you could use german, my italian is just good enough to order pizza con prociutto e funghi :) It is not guaranteed that domoticz offers a control that can do all functionality that your switch can support.
Haha! good response about language. We can continue in english and it willbe better for both! :-) Both toggle are working good because both are be able to turn on/off the power ( toggle 1 ) and turn on/off the led ( toggle 2 ) but the toggle 2 could be better supported if identified as: RGB Switch
Instead of : Switch
I don't know what RGBW, RGBWW, RGBWZ, RGBWWZ switches are.
P.S. I don't know whether to be proud or embarrassed that you immediately understood that I was Italian!
Thank you so much for your patience and support! ;-)
do you need anything else? or in what way can i help you ?
Hi, i'm using your plugin for a plug flashed with tasmota firmware. The plug with power meter and LED function is an AVATTO OT08. https://templates.blakadder.com/avatto_OT08.html
The template is fully working and all of the features of this plug are fully usable.
I have only a problem. The switch of this device is an RGB Switch, not a simple switch. Are you be able to optimize the discovery process ? I can help you giving more info if you can do something.