@wendy2702
Ich habe es nochmal zusammengefasst:
Testschalter erstellt:
09f2ab21-088d-43db-a743-939fa14c6fec-grafik.png
Instanz io Adapter Daten eingetragen und gestartet:
Log:
iot.0
46777 2025-03-18 21:15:33.246 debug [GHOME] Start smartenum processing
iot.0
46777 2025-03-18 21:15:33.266 info Connection changed: connect "m****_****_com"
iot.0
46777 2025-03-18 21:15:33.368 debug [GHOME] CHECK URL reported: {"result":"OK"}
iot.0
46777 2025-03-18 21:15:33.369 debug [GHOME] Subscribe 0 states for google home
iot.0
46777 2025-03-18 21:15:33.369 debug [GHOME] Subscribe done
Bei Intelligente Aufzählungen den Raum testhome und Funktion switch ausgewählt
Bei Google Geräte wird es so angezeigt:
d82363e3-665e-4f8b-ab05-71b020d5d0b8-grafik.png
Wenn ich Typ von Outlet auf Switch stelle passirtr nichts. Es stellt sich wieder zurück
iot.0
46777 2025-03-18 21:20:04.559 debug [GHOME] Start smartenum processing
iot.0
46777 2025-03-18 21:20:04.560 debug [GHOME] Process enum.functions.switch
iot.0
46777 2025-03-18 21:20:04.560 warn [GHOME] 0_userdata.0.testschalter is a state. It's recommended to add rooms and functionality to channels or devices and not to a state to get auto detected for Google Home. This works only for simple switches.
iot.0
46777 2025-03-18 21:20:04.560 debug [GHOME] Process: 0_userdata.0.testschalter testhome switch
iot.0
46777 2025-03-18 21:20:04.560 debug [GHOME] Type: socket
iot.0
46777 2025-03-18 21:20:04.560 info [GHOME] 0_userdata.0.testschalter is auto added with type socket.
iot.0
46777 2025-03-18 21:20:04.560 debug [GHOME] Created Google HOME device: testhomesteckdose - socket - 0_userdata.0.testschalter
iot.0
46777 2025-03-18 21:20:04.560 debug [GHOME] SmartEnum is equal child skip child detection
iot.0
46777 2025-03-18 21:20:04.560 debug [GHOME] SmartEnum is equal child skip child detection
iot.0
46777 2025-03-18 21:20:04.561 debug [GHOME] 0_userdata.0.testschalter => action.devices.types.OUTLET
iot.0
46777 2025-03-18 21:20:04.561 debug [GHOME] Subscribe 1 states for google home
iot.0
46777 2025-03-18 21:20:04.564 debug [GHOME] Subscribe done
In der Google Home App "iobroker" ausgewählt und die Anmeldedaten eingeben:
"Linking your iobroker account"
Fehlermeldung dann:
could not reach iobroker, try again later
Log:
iot.0
46777 2025-03-18 21:21:37.260 debug Request command/****com/ghome
iot.0
46777 2025-03-18 21:21:37.261 debug Data: "{\"inputs\":[{\"intent\":\"action.devices.SYNC\"}],\"requestId\":\"3319523645413555754\"}"
iot.0
46777 2025-03-18 21:21:37.261 debug [GHOME] Received action.devices.SYNC
iot.0
46777 2025-03-18 21:21:37.262 debug Response: {"requestId":"3319523645413555754","payload":{"agentUserId":"***_com","devices":[{"type":"action.devices.types.OUTLET","traits":["action.devices.traits.OnOff"],"name":{"defaultNames":["testhomesteckdose"],"name":"Test Schalter","nicknames":["Test Schalter"]},"willReportState":true,"roomHint":"testhome","deviceInfo":{"manufacturer":"ioBroker","model":"0_userdata"},"customData":{"set_on":"0_userdata.0.testschalter","get_on":"0_userdata.0.testschalter"},"id":"0_userdata.0.testschalter"}]}}
iot.0
46777 2025-03-18 21:21:37.262 debug [REMOTE] Send response to 'response/****com/ghome: {"requestId":"3319523645413555754","payload":{"agentUserId":"****com","devices":[{"type":"action.devices.types.OUTLET","traits":["action.devices.traits.OnOff"],"name":{"defaultNames":["testhomesteckdose"],"name":"Test Schalter","nicknames":["Test Schalter"]},"willReportState":true,"roomHint":"testhome","deviceInfo":{"manufacturer":"ioBroker","model":"0_userdata"},"customData":{"set_on":"0_userdata.0.testschalter","get_on":"0_userdata.0.testschalter"},"id":"0_userdata.0.testschalter"}]}}
iot.0
46777 2025-03-18 21:21:43.801 error [GHOME] devices are unknown to google home