Closed RDickens closed 6 years ago
Scheme information is not provided as the mqtt message string is already way to long due to Hass JSON naming.
Ask Hass to provide support for short JSON parameter naming and I will support Scheme info too.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.
I'm using a node mcu with some WS2812 leds and home assistant on a raspberry pi 3
I have got the home assistant discovery enabled (which does make life a lot easier) but when my node mcu sends the discovery mqtt packet to the home assistant it doesn't send any scheme information about the leds. It shows up in the "state" updates but nothing about the scheme in the discovery info.
Mqtt topic. tele/NodeMCU1/state
{"Time":"2018-04-03T23:37:56","Uptime":"0T00:00:16","Vcc":2.956,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"ON","Dimmer":11,"Color":"28,11,19","HSBColor":"332,61,11","Scheme":5,"Width":1,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":2,"SSId":"SKYC3B0A","RSSI":88,"APMac":"24:A7:DC:48:BF:2A"}}
Mqtt topic. homeassistant/light/NodeMCU1_5/config
{"name":"NodeMCU1.1 5","command_topic":"cmnd/NodeMCU1/POWER5","state_topic":"stat/NodeMCU1/RESULT","value_template":"{{value_json.POWER5}}","payload_off":"OFF","payload_on":"ON","availability_topic":"tele/NodeMCU1/LWT","payload_available":"Online","payload_not_available":"Offline","brightness_command_topic":"cmnd/NodeMCU1/Dimmer","brightness_state_topic":"stat/NodeMCU1/RESULT","brightness_scale":100,"on_command_type":"brightness","brightness_value_template":"{{value_json.Dimmer}}","rgb_command_topic":"cmnd/NodeMCU1/Color","rgb_state_topic":"stat/NodeMCU1/RESULT","rgb_value_template":"{{value_json.Color}}"}
STATUS 0
23:44:51 MQT: stat/NodeMCU1/STATUS = {"Status":{"Module":18,"FriendlyName":"NodeMCU1.1","Topic":"NodeMCU1","ButtonTopic":"0","Power":16,"PowerOnState":3,"LedState":7,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}} 23:44:51 MQT: stat/NodeMCU1/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"homeassistant","OtaUrl":"http://domus1:80/api/arduino/sonoff.ino.bin","RestartReason":"Software/System restart","Uptime":"0T00:07:11","StartupUTC":"2018-04-03T22:37:40","Sleep":0,"BootCount":73,"SaveCount":541,"SaveAddress":"F6000"}} 23:44:51 MQT: stat/NodeMCU1/STATUS2 = {"StatusFWR":{"Version":"5.12.0h","BuildDateTime":"2018-04-03T20:42:08","Boot":31,"Core":"2_40","SDK":"2.1.0(deb1901)"}} 23:44:51 MQT: stat/NodeMCU1/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"domus1","LogPort":514,"SSId1":"SKYC3B0A","SSId2":"SKYC3B0A","TelePeriod":300,"SetOption":"000A0009"}} 23:44:51 MQT: stat/NodeMCU1/STATUS4 = {"StatusMEM":{"ProgramSize":502,"Free":500,"Heap":17,"ProgramFlashSize":1024,"FlashSize":4096,"FlashMode":3}} 23:44:51 MQT: stat/NodeMCU1/STATUS5 = {"StatusNET":{"Hostname":"NodeMCU1-6196","IPAddress":"192.168.0.9","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"18:FE:34:F8:78:34","Webserver":2,"WifiConfig":1}} 23:44:51 MQT: stat/NodeMCU1/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.5","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_F87834","MqttUser":"pi","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}} 23:44:51 MQT: stat/NodeMCU1/STATUS7 = {"StatusTIM":{"UTC":"Tue Apr 03 22:44:51 2018","Local":"Tue Apr 03 23:44:51 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":1}} 23:44:51 MQT: stat/NodeMCU1/STATUS10 = {"StatusSNS":{"Time":"2018-04-03T23:44:51","AM2301":{"Temperature":17.6,"Humidity":61.0},"TempUnit":"C"}} 23:44:51 MQT: stat/NodeMCU1/STATUS11 = {"StatusSTS":{"Time":"2018-04-03T23:44:51","Uptime":"0T00:07:11","Vcc":2.956,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"ON","Dimmer":11,"Color":"28,11,19","HSBColor":"332,61,11","Scheme":5,"Width":1,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":2,"SSId":"SKYC3B0A","RSSI":86,"APMac":"24:A7:DC:48:BF:2A"}}}