Closed mealgi closed 1 year ago
Try make do a "sync my devices", or add new devices:
or try set those device to report_state = False https://github.com/DewGew/Domoticz-Google-Assistant/wiki/2.-Configuration#device-configuraton
Hello,
For the switches of subtype 'Door Lock' I fixed the issue by changing:
1 - smarthome.py
Line 143 elif 'Door Lock' == device["SwitchType"]: return DOMAINS['door'] # 'lock' --> 'door'
2 - trait.py Line 383 in def query_attributes(self): if self.state.state in ['Open', 'Off', 'Unlocked']: # add Unlocked
Line 411 in def execute(self, command, params): elif p == 100 and state in ['On', 'Locked']:# add Locked Line 415 in def execute(self, command, params): elif p == 0 and state in ['Off', 'Unlocked']:# add Unlocked
BR
The issue with selectors is still opened
The issue with selectors is still opened
Regarding selectors I started to investigate the issue and noticed in the implementation of dzga v1.32.2 that the flag "LevelOffHidden" in the selector device is not currently managed.
It means that in Google Home we have "Off" displayed whereas in Domoticz it is not.
BR
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
The bug dealing with the use of selector device type is still opened
Device description is
Please let me know if you have a hint to fix it or find a workaround BR
Describe the bug:
I have 50 devices declared in Domoticz version 2022.1 which are interfaced with Domoticz-Google-Assistant v1.11.10 The interface was operating correctly so far.
I have recently upgraded Domoticz to version 2023.1 and DZGA to 1.23.2. Since then for a set of switch devices of subtypes "door lock", "selector" I can voice control the devices and it reflects correctly in Domoticz but I get the error "ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/dev ... tification" in DZGA.LOG and the state is not reflected in Google Home which creates discrepancies between Domoticz and Google Home.
The other devices (switch lights, blinds) are operating correctly.
Expected behavior:
For the switch devices of subtypes "door lock", "selector" to have report state done correctly in Google Home.
Logs: ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/dev ... tification
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context, screenshot:
The issue happens in smarthome.py in the method below : ReportState.call_homegraph_api def report_state(self, states, token):
The weird thing is that in Google Home a selector is seen as a plain switch (on/off).