Closed Xenomes closed 4 years ago
Subtype is decided when the device is discovered.
To find out if your problem is caused by Tasmota or by the plugin, please enter this command in tasmota console for the devices you have trouble with:
setoption19 1
Then paste log both from tasmota console and from domoticz.
Here are the logs: {"NAME":"LSC-Filam-Big","GPIO":[0,0,0,0,0,0,0,0,38,0,37,0,0],"FLAG":0,"BASE":18}
{"NAME":"LSC-RGBW-Strip","GPIO":[51,0,0,0,37,0,0,0,38,40,39,0,0],"FLAG":15,"BASE":18}
Thanks for the log!
Can you please try this version of the plugin: https://raw.githubusercontent.com/emontnemery/domoticz_mqtt_discovery/259b5cbdcd6d3679f57beacb6eddcdfa36265184/plugin.py
Tested the version there the outcome: The Bulbs are now WW, but the brightness control is react strange 0% is not total dim and about 30% is full brightness, CWWW is not react at all.
The RGBW led strip is detected as a RGBWZ Colour mode works, White mode dim don't work.
Ok, so a little bit of improvement. Can you attach logs where you:
Please try this version instead: https://raw.githubusercontent.com/emontnemery/domoticz_mqtt_discovery/5c8e29f3528f08f6f75eec4bb817b9f17650b407/plugin.py
Tested the script, WW Bulbs are reacting perfect. What kind of log wants for the RGBW strip?
Is there still a problem with RGBW lights?
The LED strip is react on white dimming so that is fixed. But is detected as a RGBWZ I don´t know if controller can handle power if both are full on.
RGBWZ means controller can handle independent setting of each channel, which is the case for Tasmota. Can you check controller spec if it has a total power rating, normally spec is power for each channel.
For color setting is that perfect, Thanks for fixing the control of these devices!
Hi, I have got some bulbs and a led-strip with Tasmota 6.6.0.7 witch gets the wrong SubType in Domoticz 4.11532. The led-strip RGBW gets subtype RGB and the bulbs are WW get white. Don't know if Tasmota or the detection of the script gives the wrong SubType. Greetings Xenomes
Click for log
2019-10-07 12:07:40.473 (MQTT Discovery) Received 2 bytes of data 2019-10-07 12:07:40.473 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-07 12:07:40.524 (MQTT Discovery) Received 385 bytes of data 2019-10-07 12:07:40.524 (MQTT Discovery) 30 fe 02 00 18 73 6f 6e 6f 66 66 5f 44 33 43 34 31 32 2f 74 0�...sonoff_D3C412/t 2019-10-07 12:07:40.524 (MQTT Discovery) 65 6c 65 2f 53 54 41 54 45 7b 22 54 69 6d 65 22 3a 22 32 30 ele/STATE{"Time":"20 2019-10-07 12:07:40.524 (MQTT Discovery) 31 39 2d 31 30 2d 30 37 54 31 31 3a 30 37 3a 34 30 22 2c 22 19-10-07T11:07:40"," 2019-10-07 12:07:40.524 (MQTT Discovery) 55 70 74 69 6d 65 22 3a 22 30 54 32 33 3a 31 35 3a 33 30 22 Uptime":"0T23:15:30" 2019-10-07 12:07:40.524 (MQTT Discovery) 2c 22 48 65 61 70 22 3a 31 35 2c 22 53 6c 65 65 70 4d 6f 64 ,"Heap":15,"SleepMod 2019-10-07 12:07:40.525 (MQTT Discovery) 65 22 3a 22 44 79 6e 61 6d 69 63 22 2c 22 53 6c 65 65 70 22 e":"Dynamic","Sleep" 2019-10-07 12:07:40.525 (MQTT Discovery) 3a 35 30 2c 22 4c 6f 61 64 41 76 67 22 3a 31 39 2c 22 50 4f :50,"LoadAvg":19,"PO 2019-10-07 12:07:40.525 (MQTT Discovery) 57 45 52 22 3a 22 4f 46 46 22 2c 22 44 69 6d 6d 65 72 22 3a WER":"OFF","Dimmer": 2019-10-07 12:07:40.525 (MQTT Discovery) 38 36 2c 22 43 6f 6c 6f 72 22 3a 22 31 32 38 2c 39 31 22 2c 86,"Color":"128,91", 2019-10-07 12:07:40.525 (MQTT Discovery) 22 48 53 42 43 6f 6c 6f 72 22 3a 22 30 2c 30 2c 30 22 2c 22 "HSBColor":"0,0,0"," 2019-10-07 12:07:40.525 (MQTT Discovery) 43 68 61 6e 6e 65 6c 22 3a 5b 35 30 2c 33 36 5d 2c 22 43 54 Channel":[50,36],"CT 2019-10-07 12:07:40.525 (MQTT Discovery) 22 3a 32 39 37 2c 22 46 61 64 65 22 3a 22 4f 46 46 22 2c 22 ":297,"Fade":"OFF"," 2019-10-07 12:07:40.525 (MQTT Discovery) 53 70 65 65 64 22 3a 31 2c 22 4c 65 64 54 61 62 6c 65 22 3a Speed":1,"LedTable": 2019-10-07 12:07:40.526 (MQTT Discovery) 22 4f 4e 22 2c 22 57 69 66 69 22 3a 7b 22 41 50 22 3a 31 2c "ON","Wifi":{"AP":1, 2019-10-07 12:07:40.526 (MQTT Discovery) 22 53 53 49 64 22 3a 22 42 6f 6c 75 79 74 22 2c 22 42 53 53 "SSId":"******","BSS 2019-10-07 12:07:40.526 (MQTT Discovery) 49 64 22 3a 22 33 30 3a 35 41 3a 33 41 3a 37 30 3a 33 46 3a Id":"30:5A:3A:70:3F: 2019-10-07 12:07:40.526 (MQTT Discovery) 36 38 22 2c 22 43 68 61 6e 6e 65 6c 22 3a 37 2c 22 52 53 53 68","Channel":7,"RSS 2019-10-07 12:07:40.526 (MQTT Discovery) 49 22 3a 39 34 2c 22 4c 69 6e 6b 43 6f 75 6e 74 22 3a 31 2c I":94,"LinkCount":1, 2019-10-07 12:07:40.526 (MQTT Discovery) 22 44 6f 77 6e 74 69 6d 65 22 3a 22 30 54 30 30 3a 30 30 3a "Downtime":"0T00:00: 2019-10-07 12:07:40.526 (MQTT Discovery) 30 34 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 04"}} 2019-10-07 12:07:40.527 (MQTT Discovery) onMQTTPublish: sonoff_D3C412/tele/STATE:b'{"Time":"2019-10-07T11:07:40","Uptime":"0T23:15:30","Heap":15,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Dimmer":86,"Color":"128,91","HSBColor":"0,0,0","Channel":[50,36],"CT":297,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"******","BSSId":"30:5A:3A:70:3F:68","Channel":7,"RSSI":94,"LinkCount":1,"Downtime":"0T00:00:04"}}' 2019-10-07 12:07:40.527 (MQTT Discovery) getDevices key: '' configkey: '' hasconfigkey: '' value: '' config: '' topic: 'sonoff_D3C412/tele/STATE' 2019-10-07 12:07:40.528 (MQTT Discovery) getDevices found 1 devices 2019-10-07 12:07:40.529 (MQTT Discovery) Got state_topic 2019-10-07 12:07:40.529 (MQTT Discovery) value_template: 'POWER' 2019-10-07 12:07:40.529 (MQTT Discovery) message[value_template]: 'OFF' 2019-10-07 12:07:40.530 (MQTT Discovery) Got brightness_state_topic 2019-10-07 12:07:40.530 (MQTT Discovery) brightness_value_template: 'Dimmer' 2019-10-07 12:07:40.530 (MQTT Discovery) message[brightness_value_template]: '86' 2019-10-07 12:07:40.530 (MQTT Discovery) Got color_temp_state_topic 2019-10-07 12:07:40.530 (MQTT Discovery) color_temp_value_template: 'CT' 2019-10-07 12:07:40.530 (MQTT Discovery) message[color_temp_value_template]: '297' 2019-10-07 12:07:40.531 (MQTT Discovery) 002/Lamp Dressoir Rechts: Topic: 'sonoff_D3C412/tele/STATE 'Setting nValue: 0->0, sValue: '86.0'->'86.0', color: ''->'{}' 2019-10-07 12:07:40.532 (Lamp Dressoir Rechts) Updating device from 0:'86.0' to have values 0:'86.0'.