Comments (7)
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.
from tasmoticz.
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}
from tasmoticz.
Ok, that is all I need regarding logs.
What's left is
- I guess the two buttons are already discovered, created and work fine, right?
- If you have already setup a domoticz device that works like you want (manually in domoticz): which?
- If you already know: which domoticz device type would you like to use for that?
from tasmoticz.
- 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.
from tasmoticz.
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.
from tasmoticz.
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! ;-)
from tasmoticz.
do you need anything else? or in what way can i help you ?
from tasmoticz.
Related Issues (20)
- errors on new version of tasmota HOT 10
- Device naming in German? HOT 8
- Cant switch on/off a offline device HOT 2
- Athom device incorrectly handled HOT 1
- Better handling of humidity sensors HOT 7
- Domoticz Switch State not updated after switching HOT 8
- Error: Tazmoticz: AttributeError: type object 'Collection' has no attribute 'Mapping' with Python 3.10.4 HOT 5
- Deletion of some devices when used with a damaged Domoticz installation HOT 8
- Support for Tasmota 12.1 and Tasmota Discovery / hatasmota HOT 5
- Error message every 12hrs but everything works HOT 7
- Pb Maj Domoticz 2022.2/2023.1 HOT 14
- More than 255 devices error -> filtering ? HOT 10
- Create device for LWT messages. HOT 4
- Incorrect electricity data being sent to Domoticz. HOT 2
- I am asking for two separate blocks in domoticz HOT 23
- Another malfunction related to the energy indicator. HOT 3
- Tasmota 13.0.0 and PZEM 004 HOT 2
- Athom Tasmota RGB(WW) LED Strip Controller HOT 2
- Can I make a DevkitV1 esp32 working with tasmoticz HOT 4
- typeDb contains keys in different languages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tasmoticz.