Closed erichabg closed 3 years ago
Sorry, the HueEmulation from Tasmota is only tested and supported with Alexa hardware. For all other(s) there is no support. It looks like there is no valid UDP request for discovery. There is no UDP "Hue" traffic
Tthere must be a change between V8.2. and V8.4. But I did not found something in the release notes. Maybe you have an idea what was changed here?
There was no significant difference in Hue responses from v8.2 to v8.4.
The request /128d57
sent by your app is wrong, it should start with /api/
.
Can you send the equivalent logs with v8.2 where it shows it's successful?
Here is the log with V8.2. 13:43:51 CMD: weblog 4 13:43:51 MQT: EFHome/clients/Laser/status/Laser/1/RESULT = {"WebLog":4} 13:43:51 UDP: Packet (101) 13:43:51 HTP: Hue-Setup 13:43:51 CFG: in Flash gespeichert am FB, zählen 363, Bytes 4096 13:43:53 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:43:54 UDP: Packet (101) 13:43:56 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:43:57 UDP: Packet (101) 13:43:57 UDP: Packet (174) 13:43:57 HTP: Hue-API (/config) 13:43:58 UDP: Packet (174) 13:43:59 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:43:59 UDP: Packet (174) 13:44:00 UDP: Packet (174) 13:44:01 UDP: Packet (101) 13:44:01 HTP: Hue-Setup 13:44:02 HTP: Hue-API (/config) 13:44:02 HTP: Hue-API () 13:44:02 HTP: Hue POST-Argumente ({"devicetype":"BoschSmartHome#SmartHomeController"}) 13:44:02 HTP: Hue Authentication Result ([{"success":{"username":"79d0ba"}}]) 13:44:02 HTP: Hue-API (/79d0ba) 13:44:02 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 13:44:03 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:04 WIF: Prüfe Verbindung... 13:44:04 UDP: Packet (101) 13:44:06 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:07 HTP: Hue-API (/79d0ba) 13:44:07 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 13:44:07 UDP: Packet (101) 13:44:10 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:11 UDP: Packet (123) 13:44:11 UDP: Packet (101) 13:44:11 HTP: Hue-Setup 13:44:12 HTP: Hue-API (/79d0ba) 13:44:12 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 13:44:13 HTP: Hue-API (/79d0ba/groups/) 13:44:13 HTP: Hue POST-Argumente ({"name":"BOSCH_SMART_HOME_INTRUSION","lights":["127732641"]}) 13:44:13 HTP: Hue Authentication Result ([{"success":{"username":"79d0ba"}}]) 13:44:14 HTP: Hue-API (/79d0ba/lights/127732641/state) 13:44:14 HTP: Hue POST-Argumente ({"alert":"lselect"}) 13:44:14 HTP: Hue Result ([{"error":{"type":901,"address":"/","description":"Internal Error"}}]) 13:44:14 UDP: Packet (101) 13:44:16 UDP: Packet (123) 13:44:16 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:17 HTP: Hue-API (/79d0ba) 13:44:17 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 13:44:17 UDP: Packet (101) 13:44:19 HTP: Hue-API (/79d0ba/lights/127732641/state) 13:44:19 HTP: Hue POST-Argumente ({"alert":"none"}) 13:44:19 HTP: Hue Result ([{"error":{"type":901,"address":"/","description":"Internal Error"}}]) 13:44:19 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:21 UDP: Packet (123) 13:44:21 UDP: Packet (101) 13:44:22 HTP: Hue-Setup 13:44:22 HTP: Hue-API (/79d0ba) 13:44:22 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 13:44:23 UDP: Packet (167) 13:44:24 WIF: Prüfe Verbindung... 13:44:24 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:24 UDP: Packet (167) 13:44:25 UDP: Packet (101) 13:44:25 UDP: Packet (167) 13:44:26 UDP: Packet (167) 13:44:26 UDP: Packet (123) 13:44:27 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 13:44:27 HTP: Hue-API (/79d0ba) 13:44:27 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 13:44:28 UDP: Packet (101)
The UDP listener was changed in v8.3 and packets were limited to the following:
#define UDP_BUFFER_SIZE 120 // Max UDP buffer size needed for M-SEARCH message
#define UDP_MAX_PACKETS 3 // we support x more packets than the current one
From your logs it looks that v8.2 did received the UPNP packets but 8.4 didn't (or discarded it).
Are you able to compile your own version in increase UDP_BUFFER_SIZE to 200 and UDP_MAX_PACKETS to 6?
Yes, I can. I give it a try!
I did it, but unfortunately without success! 15:49:03 UDP: Packet (101) 15:49:03 HTP: Hue-Setup 15:49:04 UDP: Packet (123) 15:49:05 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:06 UDP: Packet (101) 15:49:08 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:08 UDP: Packet (123) 15:49:09 UDP: Packet (101) 15:49:11 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:11 WIF: Prüfe Verbindung... 15:49:13 UDP: Packet (101) 15:49:13 HTP: Hue-Setup 15:49:15 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:16 UDP: Packet (101) 15:49:18 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:19 UDP: Packet (101) 15:49:21 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:23 UDP: Packet (101) 15:49:23 HTP: Hue-Setup 15:49:25 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:26 UDP: Packet (101) 15:49:28 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:29 UDP: Packet (101) 15:49:30 HTP: Hue-API (/config) 15:49:30 HTP: Hue-API (/79d0ba) 15:49:30 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 15:49:31 WIF: Prüfe Verbindung... 15:49:31 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:33 UDP: Packet (101) 15:49:33 HTP: Hue-Setup 15:49:35 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:36 UDP: Packet (101) 15:49:38 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:39 UDP: Packet (101) 15:49:41 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:43 UDP: Packet (101) 15:49:43 HTP: Hue-Setup 15:49:45 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:46 UDP: Packet (101) 15:49:48 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:49 UDP: Packet (101) 15:49:51 WIF: Prüfe Verbindung... 15:49:51 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:53 UDP: Packet (101) 15:49:53 HTP: Hue-Setup 15:49:55 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:56 UDP: Packet (101) 15:49:56 MQT: EFHome/clients/Laser/status/Laser/1/STATE = {"Time":"2020-09-06T15:49:56","Uptime":"0T00:01:12","UptimeSec":72,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"0","Wifi":{"AP":1,"SSId":"EFHOME2","BSSId":"08:96:D7:66:97:A5","Channel":1,"RSSI":100,"Signal":-44,"LinkCount":1,"Downtime":"0T00:00:06"}} 15:49:57 UDP: Packet (174) 15:49:58 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:49:58 UDP: Packet (174) 15:49:59 UDP: Packet (101) 15:49:59 UDP: Packet (174) 15:50:00 UDP: Packet (174) 15:50:01 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:03 UDP: Packet (101) 15:50:03 HTP: Hue-Setup 15:50:05 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:06 UDP: Packet (101) 15:50:08 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:09 UDP: Packet (101) 15:50:11 WIF: Prüfe Verbindung... 15:50:12 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:13 UDP: Packet (101) 15:50:13 HTP: Hue-Setup 15:50:15 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:16 UDP: Packet (101) 15:50:19 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:19 UDP: Packet (101) 15:50:21 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:23 UDP: Packet (167) 15:50:23 UDP: Packet (199) 15:50:23 UDP: Packet (199) 15:50:23 UDP: Packet (199) 15:50:23 UDP: Packet (199) 15:50:23 UDP: Packet (101) 15:50:24 HTP: Hue-Setup 15:50:24 UDP: Packet (167) 15:50:25 UDP: Packet (167) 15:50:25 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:26 UDP: Packet (167) 15:50:26 UDP: Packet (101) 15:50:29 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:29 HTP: Hue-API (/config) 15:50:29 UDP: Packet (101) 15:50:31 WIF: Prüfe Verbindung... 15:50:31 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:32 HTP: Konsole 15:50:34 UDP: Packet (101) 15:50:34 HTP: Hue-Setup 15:50:35 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:36 UDP: Packet (101) 15:50:39 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:40 UDP: Packet (101) 15:50:42 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:42 UDP: Packet (199) 15:50:42 UDP: Packet (199) 15:50:42 UDP: Packet (199) 15:50:42 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:43 UDP: Packet (199) 15:50:44 UDP: Packet (101) 15:50:44 HTP: Hue-Setup 15:50:46 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:47 UDP: Packet (101) 15:50:48 HTP: Hue-API (/config) 15:50:48 HTP: Hue-API () 15:50:48 HTP: Hue POST-Argumente ({"devicetype":"BoschSmartHome#SmartHomeController"}) 15:50:48 HTP: Hue Authentication Result ([{"success":{"username":"79d0ba"}}]) 15:50:49 HTP: Hue-API (/79d0ba) 15:50:49 HTP: Hue User-Agent: BOSCH-SMART-HOME-HUE-BRIDGE-CLIENT, gen=2 15:50:49 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:49 UDP: Packet (123) 15:50:50 UDP: Packet (101) 15:50:50 UDP: Packet (199) 15:50:50 UDP: Packet (199) 15:50:50 UDP: Packet (199) 15:50:50 UDP: Packet (199) 15:50:50 UDP: Packet (199) 15:50:50 UDP: Packet (199) 15:50:51 WIF: Prüfe Verbindung... 15:50:52 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:54 UDP: Packet (101) 15:50:54 HTP: Hue-Setup 15:50:54 UDP: Packet (123) 15:50:56 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:56 MQT: EFHome/clients/Laser/status/Laser/1/STATE = {"Time":"2020-09-06T15:50:56","Uptime":"0T00:02:12","UptimeSec":132,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"0","Wifi":{"AP":1,"SSId":"EFHOME2","BSSId":"08:96:D7:66:97:A5","Channel":1,"RSSI":100,"Signal":-44,"LinkCount":1,"Downtime":"0T00:00:06"}} 15:50:57 UDP: Packet (101) 15:50:58 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:50:59 UDP: Packet (123) 15:51:00 UDP: Packet (101) 15:51:02 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:04 HTP: Hue-Setup 15:51:04 UDP: Packet (101) 15:51:04 UDP: Packet (123) 15:51:06 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:07 UDP: Packet (101) 15:51:09 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:09 UDP: Packet (123) 15:51:10 UDP: Packet (101) 15:51:11 WIF: Prüfe Verbindung... 15:51:12 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:14 UDP: Packet (101) 15:51:14 HTP: Hue-Setup 15:51:16 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:17 UDP: Packet (101) 15:51:19 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:20 UDP: Packet (101) 15:51:22 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:24 UDP: Packet (101) 15:51:24 HTP: Hue-Setup 15:51:26 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:27 UDP: Packet (101) 15:51:29 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:30 UDP: Packet (101) 15:51:31 WIF: Prüfe Verbindung... 15:51:32 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:34 UDP: Packet (101) 15:51:34 HTP: Hue-Setup 15:51:36 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:37 UDP: Packet (101) 15:51:39 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851 15:51:40 UDP: Packet (101) 15:51:42 UPP: Hue 3 Antwortpakete gesendet zu 192.168.178.128:55851
Thanks, actually I have another idea. You currently have 8 relays declared, can you please reduce to 6 relays and check if it works?
The response in v8.4 contains two additional fields name
and modelid
and it can make the response too big and truncated.
No, that doesn't solve the problem. And I have also tested with Sonoff S2x (no additional GPIOs configured) and there is the same behaviour.
I have now removed the name and the modelid from the source code const char HUE_LIGHTS_STATUS_JSON2[] PROGMEM = ",\"type\":\"Extended color light\"," // E.F. "\"name\":\"%s\"," // E.F. "\"modelid\":\"%s\"," "\"manufacturername\":\"%s\"," "\"uniqueid\":\"%s\"}";
and have also changed the places in the source where this struct was used, but the behaviour is the same.
(I'm now out for some days, will be back next weekend)
I'm out of ideas.
Closing this issue until the user has time for more testings.
Thanks.
PROBLEM DESCRIPTION
With Tasmota V8.2 the BOSCH Smarthome App finds a Hue Bridge and a Hue lamp for each Tasmota device and therefore the device can be switched on and off. With Tasmota V8.4.0 and also the development V8.4.0.3 there is only the Hue bridge found but no Hue lamp behind the bridge. Therefore switching the lamp is not possible.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
: For ESP32: 00:25:18 MQT: EFHome/clients/Garage2/stat/Garage2/1/RESULT = {"NAME":"ESP32-DevKit","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,1,0,0,1],"FLAG":0,"BASE":1} 00:25:19 MQT: EFHome/clients/Garage2/stat/Garage2/1/RESULT = {"Module":{"0":"ESP32-DevKit"}} 00:25:19 MQT: EFHome/clients/Garage2/stat/Garage2/1/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"261":"Relay_i6"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"263":"Relay_i8"},"GPIO17":{"262":"Relay_i7"},"GPIO18":{"260":"Relay_i5"},"GPIO19":{"259":"Relay_i4"},"GPIO21":{"258":"Relay_i3"},"GPIO22":{"0":"None"},"GPIO23":{"256":"Relay_i1"},"GPIO25":{"257":"Relay_i2"},"GPIO26":{"0":"None"},"GPIO27":{"0":"None"},"GPIO32":{"0":"None"},"GPIO33":{"0":"None"},"GPIO34":{"1216":"AM2301"},"GPIO35":{"0":"None"},"GPIO36":{"0":"None"},"G ..Wemos D1 mini: 12:20:39 MQT: EFHome/clients/Garage1/status/Garage1/1/RESULT = {"NAME":"Generic","GPIO":[255,255,255,255,255,255,255,255,255,255,255,255,255],"FLAG":1,"BASE":18} 12:20:39 MQT: EFHome/clients/Garage1/status/Garage1/1/RESULT = {"Module":{"18":"Generic"}} 12:20:39 MQT: EFHome/clients/Garage1/status/Garage1/1/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"6":"I2C SDA"},"GPIO5":{"5":"I2C SCL"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"2":"AM2301"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"}}.
Rules output here: