Wenn dies dein erster Besuch hier ist, lies bitte zuerst die Hilfe - Häufig gestellte Fragen durch. Du musst dich vermutlich registrieren, bevor du Beiträge verfassen kannst. Klicke oben auf 'Registrieren', um den Registrierungsprozess zu starten. Du kannst auch jetzt schon Beiträge lesen. Suche dir einfach das Forum aus, das dich am meisten interessiert.
Hallo En3rGy,
ich will dir an dieser Stelle gerne DANKE sagen, dass du diesen Baustein entwickelt hast und so gut wartest!
Ich persönlich habe (bisher) nur einen recht einfachen Anwendungsfall (Steckdose schalten), den ich jedoch gerne von Anfang bis Ende dokumentieren will, dass es anderen ggf. leichter fällt mit dem Baustein warm zu werden.
Den Baustein nutzen, um eine HUE-Steckdose zu schalten:
Zwei GA in der ETS anlegen (Typ Schalten und Typ Status): image.png
Die Kommunikationsobjekte im Homeserver: image.png
Logik anlegen, bei Key (1) den generierten Bridge-Key hinterlegen und die neue Logik an den HomeServer übertragen. Die Item-ID des zu steuernden Geräts kennt man zu diesem Zeitpunkt noch nicht! image.png
Wenn man die URL aufgerufen hat, findet man eine Tabelle, die alle Hue Geräte auflistet. Um das richtige Gerät zu identifizieren, orientiert man sich an den in der Hue-App vergebenen Raumnamen (1) und dem Namen (2).
Auch wenn die Hilfe zum Baustein folgendes sagt: "ID of Hue device to be controlled. The device ID can be identified [...]", lässt sich (m)eine Steckdose nur über die bei "Light" (4) hinterlegte ID schalten und nicht über die ID bei "Device" (3) image.png
Die ermittelte ID wird jetzt bei "Item Id" (2) hinterlegt. Ein Telegrammgenerator ist seit der Umstellung auf die neue Hue-API nicht mehr notwendig, der Status wird in Echtzeit aktualisiert, wenn der Schaltvorgang über die Hue-App oder aus Homekit heraus erfolgt. image.png
Die Gruppenadresse zum Schalten + Status auf einen Taster oder einen Button im QuadClient legen.
Hallo hab den Baustein jetzt schon einige Zeit am Laufen und Schalten funktioniert auch. Hab aber heute auf der Debug Seite folgenden Fehler für einen der Lightstrips gefunden: Error in process_json #239
Code:
unsupported operand type(s) for -: 'str' and 'float' with {"status": "200", "data": "{\"errors\":[],\"data\":[{\"id\":\"bc43acb0-8a8c-4e3b-9bc8-81f14403f670\",\"id_v1\":\"/groups/1\",\"owner\":{\"rid\":\"05811de5-d9bf-47c0-bcca-12dc84cfb262\",\"rtype\":\"room\"},\"on\":{\"on\":false},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"b04d1643-0c6f-45e9-8e2c-bd811b10e201\",\"id_v1\":\"/groups/0\",\"owner\":{\"rid\":\"7987b85f-281a-47f0-9553-187b85b4f87e\",\"rtype\":\"bridge_home\"},\"on\":{\"on\":true},\"dimming\":{\"brightness\":100.0},\"dimming_delta\":{},\"color_temperature\":{},\"color_temperature_delta\":{},\"color\":{},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"863a68c9-fd1e-4ebb-ad2d-a4bb7690d4fa\",\"id_v1\":\"/groups/2\",\"owner\":{\"rid\":\"487310b6-48a9-4dbe-869c-87451531c8d7\",\"rtype\":\"room\"},\"on\":{\"on\":false},\"dimming\":{\"brightness\":0.0},\"dimming_delta\":{},\"color_temperature\":{},\"color_temperature_delta\":{},\"color\":{},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"de4ee519-b6bb-4432-bc62-2f21fe048d0f\",\"id_v1\":\"/groups/7\",\"owner\":{\"rid\":\"eeafc312-aa0f-476c-a513-aacfd256d689\",\"rtype\":\"room\"},\"on\":{\"on\":false},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"0c54ab0f-32da-4eb6-ba16-2bc15f7fe9ee\",\"id_v1\":\"/groups/9\",\"owner\":{\"rid\":\"4412d29e-2c90-4817-ad5e-5b9c24225633\",\"rtype\":\"room\"},\"on\":{\"on\":false},\"dimming\":{\"brightness\":0.0},\"dimming_delta\":{},\"color_temperature\":{},\"color_temperature_delta\":{},\"color\":{},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"adb22504-e397-4e32-97c0-5b8d7c0ac6a3\",\"id_v1\":\"/groups/6\",\"owner\":{\"rid\":\"38583329-2ed7-48c6-af30-96f84a4e3e50\",\"rtype\":\"room\"},\"on\":{\"on\":true},\"dimming\":{\"brightness\":100.0},\"dimming_delta\":{},\"color_temperature\":{},\"color_temperature_delta\":{},\"color\":{},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"65790a5a-2929-418d-854c-e8fbe6d2b995\",\"id_v1\":\"/groups/4\",\"owner\":{\"rid\":\"c58164b9-7ae9-4053-bfaa-a08373f8b15c\",\"rtype\":\"room\"},\"on\":{\"on\":true},\"dimming\":{\"brightness\":100.0},\"dimming_delta\":{},\"color_temperature\":{},\"color_temperature_delta\":{},\"color\":{},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"},{\"id\":\"e90da63e-091c-468a-bd30-2993f1a36e70\",\"id_v1\":\"/groups/5\",\"owner\":{\"rid\":\"a59d6c66-51ea-4fd0-afd2-890c866c7600\",\"rtype\":\"private_group\"},\"on\":{\"on\":false},\"dimming\":{\"brightness\":0.0},\"dimming_delta\":{},\"color_temperature\":{},\"color_temperature_delta\":{},\"color\":{},\"alert\":{\"action_values\":[\"breathe\"]},\"signaling\":{},\"dynamics\":{},\"type\":\"grouped_light\"}]}\r\n"}
Hallo Paul,
wir würden gerne Deinen Baustein 14100 für die Steuerung unserer HEU Leuchten verwenden.
Wir wollen nur HUE Szenen über den Baustein ein- und ausschalten.
Geht das mit Deinem Baustein? Wir haben es nicht geschafft folgende Sequenz im Baustein abzubilden.
Am CLIP API Debugger
URL /api/3Dq9pjWVmHd-eHiFtsCmSzFhfqYO5QMfe-2KtP/groups/10/action
Message Body {"scene": "jP1TCHG0ng13x9R"}
PUT
URL /api/3Dq9pjWVmHd-eHiFtsCmSzFhfqYO5QMfe-2KtP/groups/10/action
Message Body {"on": false}
PUT
With the latest version i'm having a few issues:
1. I have to use the grouped light id as the room id will give back the status but i cannot control lights on/off for that room
2. When using the RM brightness it will create some kind of feedback loop and turning the lights on again.
Pretty sure this is down to HS as QC dimmer requires me to use a central listening address, and this can do funky things at times
For example, the value object (%) is 1/2/16 and the RM is 1/4/16, when i set 1/4/16 as listening address for 1/2/16 it will feedback somehow.
The switch object does not have this problem (1/0/16 and RM 1/3/16)
Any know workaround?
As a side note: The hacky module i wrote myself does not have this issue. I can share the code to see if i'm doing something very different.
It is however for api v1 and does not stream. But relies on trigger for reading the status
1. I have to use the grouped light id as the room id will give back the status but i cannot control lights on/off for that room
Just checked the api and it's indeed not possible to control lights via the room id or to receive a status. It seems that there is a group generated for each room. I'll try to get mor info on that.
2. When using the RM brightness it will create some kind of feedback loop and turning the lights on again.
Pretty sure this is down to HS as QC dimmer requires me to use a central listening address, and this can do funky things at times
Yes. Search the forum for that one, there are several posts dealing with this topic. If you have a recommendation for me on how to configure the outputs, feel invited to come back with this.
I can share the code to see if i'm doing something very different.
Thanks but unfortunatelly, v1 and v2 do have nothing in common. Use your version if it's mor stable for your demands. I expect that v1 will become obsolete at some point in time. Unitl then I hope, the new version works like a charm. Debugging is still dificult. That's why I focus currently on the unit testing stuff. I'll write some trying to catch your obersvations. Nevertheless, I hope to release a new vesion within the next weeks / few month.
Just checked the api and it's indeed not possible to control lights via the room id or to receive a status. It seems that there is a group generated for each room. I'll try to get mor info on that.
I dont know why they changed that. In V1 you could just enter the room as a name and you could find the room id and then control the whole room.
So i just put in "woonkamer" and the room made in the HUE app would respond.
Yes. Search the forum for that one, there are several posts dealing with this topic. If you have a recommendation for me on how to configure the outputs, feel invited to come back with this.
I will have a look in my code how i dealt with that. Better yet: HS QC should just have seperate object for RM instead of this archaic method.
Yes. Search the forum for that one, there are several posts dealing with this topic. If you have a recommendation for me on how to configure the outputs, feel invited to come back with this.
In my module i used a check with a remanent object before triggering an output, that seems to work now that i put all my modules back.
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar