ich brauche Profi-Hilfe, ich bin am Ende mit meinem Latein. Gefühlt auf der Zielgeraden, aber jetzt geht's nicht weiter. Und zwar:
Ich habe GU10-LED-Spots von Govee, Modell H600D https://eu.govee.com/de-de/products/gov ... DiWRbvlYz3
Diese lassen sich leider nicht direkt in OH einbinden. Zwar gibt es ein Govee Binding; um dies zu nutzen, muss in der Govee App der Schalter "LAN Control" eingeschaltet werden. Für dieses Modell ist das nicht verfügbar.
Aber: es gibt ein (home assistant) Tool, das per API (leider nicht lokal, aber in der Not frisst der Teufel Fliegen) auf die Govee Cloud zugreift:
https://github.com/wez/govee2mqtt/blob/ ... /DOCKER.md
Flux die .env-Datei angepasst (User, Passwort, MQTT Broker, API) und installiert - läuft und liefert Daten.
gv2mqtt/light/1005B08184C426FC/state
Code: Alles auswählen
{"brightness":70,"color_mode":"color_temp","color_temp":370,"effect":null,"state":"ON"}
gv2mqtt/switch/1005B08184C426FC/powerSwitch/state
Code: Alles auswählen
ON
OH zeigt sogar die Lampen in den Things per Autodiscovery an, allerdings stehen diese dann auf UNKNOWN statt ONLINE und haben auch keine Channel.
Code: Alles auswählen
UID: mqtt:homeassistant_gv2mqtt_2D1005B08184C426FC:mosquitto:gv2mqtt_2D1005B08184C426FC
label: Büro 3 (Light, Sensor, Switch, button)
thingTypeUID: mqtt:homeassistant_gv2mqtt_2D1005B08184C426FC
configuration:
topics:
- button/gv2mqtt-1005B08184C426FC-request-platform-data
- light/gv2mqtt-1005B08184C426FC
- sensor/sensor-1005B08184C426FC-gv2mqtt-status
- switch/gv2mqtt-1005B08184C426FC-powerSwitch
basetopic: homeassistant
bridgeUID: mqtt:broker:mosquitto
Code: Alles auswählen
Thing mqtt:topic:mosquitto:gv2mqtt "MQTT Govee" (mqtt:broker:mosquitto) {
Channels:
Type switch : office1 [ commandTopic="gv2mqtt/light/1005B08184C426FC/command", stateTopic="gv2mqtt/light/1005B08184C426FC/state", transformationPattern="JSONPATH:$.state", off="OFF" , on="ON" ]
Code: Alles auswählen
UID: mqtt:topic:mosquitto:gv2mqtt
label: MQTT Govee
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:mosquitto
channels:
- id: office1
channelTypeUID: mqtt:switch
label: On/Off Switch
configuration:
retained: false
postCommand: false
formatBeforePublish: "%s"
commandTopic: gv2mqtt/light/1005B08184C426FC/command
stateTopic: gv2mqtt/light/1005B08184C426FC/state
transformationPattern: JSONPATH:$.state
off: OFF
on: ON

edit:
Irgendwann später erscheint in mqtt dann noch folgendes:
homeassistant/light/gv2mqtt-1005B08184C426FC/config
Code: Alles auswählen
{"availability_topic":"gv2mqtt/availability","name":null,"origin":{"name":"gv2mqtt","sw_version":"2024.07.21-c9d27764","url":"https://github.com/wez/govee2mqtt"},"device":{"name":"Büro 3","manufacturer":"Govee","model":"H600D","via_device":"gv2mqtt","identifiers":["gv2mqtt-1005B08184C426FC"]},"unique_id":"gv2mqtt-1005B08184C426FC","schema":"json","command_topic":"gv2mqtt/light/1005B08184C426FC/command","state_topic":"gv2mqtt/light/1005B08184C426FC/state","optimistic":false,"supported_color_modes":["rgb","color_temp"],"color_mode":true,"brightness":true,"brightness_scale":100,"effect":true,"effect_list":["","Adventure Game","Asleep","Aurora","Awaken","Business","Candlelight","Candy","Cards Game","Care","Carnival","Cartoon","Christmas","Dance Party","Desert","Dreamland","Dusk","Enthusiastic","Father's Day","Fighting Game","Fire","Flower Field","Forest","Game","Halloween","Happy","Healing","Karst Cave","Longing","Meditation","Mild","Morning","Mother's Day","Movie","Music: Energic","Music: Rhythm","Music: Rolling","Music: Spectrum","Night Light","Party","Profound","Puzzle Game","Quiet","Racing Game","Rainbow","Reading","Relax","Rivalry","River","Romantic","Shooting Game","Sports Game","Starry Sky","Study","Sunset Glow","Sweet","Technology","Thanksgiving","Valentine's Day","Warm","White Light"],"min_mireds":153,"max_mireds":370,"payload_available":"online"}
homeassistant/switch/gv2mqtt-1005B08184C426FC-powerSwitch/config
Code: Alles auswählen
{"availability_topic":"gv2mqtt/availability","name":"Power Switch","origin":{"name":"gv2mqtt","sw_version":"2024.07.21-c9d27764","url":"https://github.com/wez/govee2mqtt"},"device":{"name":"Büro 1","manufacturer":"Govee","model":"H600D","via_device":"gv2mqtt","identifiers":["gv2mqtt-1005B08184C426FC"]},"unique_id":"gv2mqtt-1005B08184C426FC-powerSwitch","command_topic":"gv2mqtt/switch/1005B08184C426FC/command/powerSwitch","state_topic":"gv2mqtt/switch/1005B08184C426FC/powerSwitch/state"}
Wenn ich in der Govee-App den Schalter betätige, reagiert der openHAB-Schalter (s.o.). In diese Richtung funktioniert das ganze also...
Fehlt noch umgehehrt.