Domoticz-Google-Assistant (dzga) Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
Nielsch
Posts: 10
Joined: Saturday 19 August 2017 20:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Nielsch »

DewGew wrote: Wednesday 01 April 2020 11:13
ressof wrote: Wednesday 01 April 2020 10:21
DewGew wrote: Wednesday 01 April 2020 10:18
Paste the json output here for that device e.g http://your.domoticz.ip:8080/json.htm?t ... =DEVICEIDX
Spoiler: show

Code: Select all

{
	"ActTime" : 1585729270,
	"AstrTwilightEnd" : "22:22",
	"AstrTwilightStart" : "04:13",
	"CivTwilightEnd" : "20:35",
	"CivTwilightStart" : "05:59",
	"DayLength" : "13:15",
	"NautTwilightEnd" : "21:25",
	"NautTwilightStart" : "05:09",
	"ServerTime" : "2020-04-01 10:21:10",
	"SunAtSouth" : "13:17",
	"Sunrise" : "06:40",
	"Sunset" : "19:55",
	"app_version" : "2020.1 (build 11853)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "",
			"CustomImage" : 0,
			"Data" : "Off",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareID" : 11,
			"HardwareName" : "ShellyMQTT",
			"HardwareType" : "Shelly MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "shellydimmer-F35FDD-0-dimmer",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2020-04-01 10:19:38",
			"Level" : 98,
			"LevelInt" : 98,
			"MaxDimLevel" : 100,
			"Name" : "K\u00f6k Tak",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "Off",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "White",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "427"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Try latest beta V1.7.4
I tried to add my Shelly 2 dimmer and have the same issue with Colorswitch White and found these messages. When I add this device I get a lot of error messages/time-outs. dzga is working fine if this device is not added. Should I still switch to the beta?
JSON output:

Code: Select all

{
	"ActTime" : 1602791972,
	"AstrTwilightEnd" : "20:37",
	"AstrTwilightStart" : "06:14",
	"CivTwilightEnd" : "19:20",
	"CivTwilightStart" : "07:31",
	"DayLength" : "10:41",
	"NautTwilightEnd" : "19:58",
	"NautTwilightStart" : "06:52",
	"ServerTime" : "2020-10-15 21:59:32",
	"SunAtSouth" : "13:25",
	"Sunrise" : "08:05",
	"Sunset" : "18:46",
	"app_version" : "2020.2",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "",
			"CustomImage" : 0,
			"Data" : "On",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareID" : 21,
			"HardwareName" : "Shelly MQTT",
			"HardwareType" : "Shelly MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "shellydimmer2-D8BFC01A01A1-0-dimmer",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2020-10-15 21:00:54",
			"Level" : 15,
			"LevelInt" : 15,
			"MaxDimLevel" : 100,
			"Name" : "Eettafellamp",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "On",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "White",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "431"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Nielsch wrote: Thursday 15 October 2020 22:06
DewGew wrote: Wednesday 01 April 2020 11:13
ressof wrote: Wednesday 01 April 2020 10:21
Spoiler: show

Code: Select all

{
	"ActTime" : 1585729270,
	"AstrTwilightEnd" : "22:22",
	"AstrTwilightStart" : "04:13",
	"CivTwilightEnd" : "20:35",
	"CivTwilightStart" : "05:59",
	"DayLength" : "13:15",
	"NautTwilightEnd" : "21:25",
	"NautTwilightStart" : "05:09",
	"ServerTime" : "2020-04-01 10:21:10",
	"SunAtSouth" : "13:17",
	"Sunrise" : "06:40",
	"Sunset" : "19:55",
	"app_version" : "2020.1 (build 11853)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "",
			"CustomImage" : 0,
			"Data" : "Off",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareID" : 11,
			"HardwareName" : "ShellyMQTT",
			"HardwareType" : "Shelly MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "shellydimmer-F35FDD-0-dimmer",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2020-04-01 10:19:38",
			"Level" : 98,
			"LevelInt" : 98,
			"MaxDimLevel" : 100,
			"Name" : "K\u00f6k Tak",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "Off",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "White",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "427"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Try latest beta V1.7.4
I tried to add my Shelly 2 dimmer and have the same issue with Colorswitch White and found these messages. When I add this device I get a lot of error messages/time-outs. dzga is working fine if this device is not added. Should I still switch to the beta?
JSON output:

Code: Select all

{
	"ActTime" : 1602791972,
	"AstrTwilightEnd" : "20:37",
	"AstrTwilightStart" : "06:14",
	"CivTwilightEnd" : "19:20",
	"CivTwilightStart" : "07:31",
	"DayLength" : "10:41",
	"NautTwilightEnd" : "19:58",
	"NautTwilightStart" : "06:52",
	"ServerTime" : "2020-10-15 21:59:32",
	"SunAtSouth" : "13:25",
	"Sunrise" : "08:05",
	"Sunset" : "18:46",
	"app_version" : "2020.2",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "",
			"CustomImage" : 0,
			"Data" : "On",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareID" : 21,
			"HardwareName" : "Shelly MQTT",
			"HardwareType" : "Shelly MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "shellydimmer2-D8BFC01A01A1-0-dimmer",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2020-10-15 21:00:54",
			"Level" : 15,
			"LevelInt" : 15,
			"MaxDimLevel" : 100,
			"Name" : "Eettafellamp",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "On",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "White",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "431"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
What error do you get? It should work with latest master
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

ressof wrote: Monday 12 October 2020 12:28
DewGew wrote: Monday 12 October 2020 8:38
ressof wrote: Monday 12 October 2020 8:11 Hi
I try to set set a selector switch to type vacuum and us this code in description

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
But then when i reload dzga it says it cant find any devices from domoticz. Are there any certain level names you must use when devicetype is vacuum?
Are you running master or beta? Selector switch or on/off switch?.
Beta and selector switch
It suppost to work like an ordinary selector switch:
User: Activate [Level Name] on vacuum.
Google Assistant: Activates [Level Name] on Vacuum.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
ressof
Posts: 61
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by ressof »

DewGew wrote: Sunday 18 October 2020 10:17
ressof wrote: Monday 12 October 2020 12:28
DewGew wrote: Monday 12 October 2020 8:38
Are you running master or beta? Selector switch or on/off switch?.
Beta and selector switch
It suppost to work like an ordinary selector switch:
User: Activate [Level Name] on vacuum.
Google Assistant: Activates [Level Name] on Vacuum.
I added a selector switch in domoticz with some levels and in the description added this:

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
When i restart dzga from webinterface and relogin this messages appears:
Connection to Domoticz refused! Check configuration.
and in the log I get this error:
ERROR - Error in getting devices and settings

I have used the voicecontrol devicetype with heater and fan without any trouble.
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

Hello DewGew,

I have notifications in some of my devices under domoticz, is it possible that the Google assistant can notify me?
if so, what is the procedure?

Thank you in advance for your return.
Thank you again for your remarkable work.
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

ressof wrote: Monday 19 October 2020 10:33
DewGew wrote: Sunday 18 October 2020 10:17
ressof wrote: Monday 12 October 2020 12:28
Beta and selector switch
It suppost to work like an ordinary selector switch:
User: Activate [Level Name] on vacuum.
Google Assistant: Activates [Level Name] on Vacuum.
I added a selector switch in domoticz with some levels and in the description added this:

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
When i restart dzga from webinterface and relogin this messages appears:
Connection to Domoticz refused! Check configuration.
and in the log I get this error:
ERROR - Error in getting devices and settings

I have used the voicecontrol devicetype with heater and fan without any trouble.
This issue is fixed in latest Beta V.1.8.13
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

transalpes wrote: Monday 19 October 2020 10:51 Hello DewGew,

I have notifications in some of my devices under domoticz, is it possible that the Google assistant can notify me?
if so, what is the procedure?

Thank you in advance for your return.
Thank you again for your remarkable work.
Like speaks out in your Google Home or Nest hub?
Then you can use this Domoticz plugin: https://github.com/dnpwwo/Domoticz-Google-Plugin
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
ressof
Posts: 61
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by ressof »

DewGew wrote: Tuesday 20 October 2020 16:28
ressof wrote: Monday 19 October 2020 10:33
DewGew wrote: Sunday 18 October 2020 10:17

It suppost to work like an ordinary selector switch:
User: Activate [Level Name] on vacuum.
Google Assistant: Activates [Level Name] on Vacuum.
I added a selector switch in domoticz with some levels and in the description added this:

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
When i restart dzga from webinterface and relogin this messages appears:
Connection to Domoticz refused! Check configuration.
and in the log I get this error:
ERROR - Error in getting devices and settings

I have used the voicecontrol devicetype with heater and fan without any trouble.
This issue is fixed in latest Beta V.1.8.13
Thank you DewGew.
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

hi all,

trying to sync my thermostat temp to google home.
no issues with sync but in the Google Home app all my thermostats (rpi temp, livingroom temp, airco temp indoor and outdoor) react as "offline".
What is the issue here? How can I fix this?
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Xavier82 wrote: Thursday 22 October 2020 23:23 hi all,

trying to sync my thermostat temp to google home.
no issues with sync but in the Google Home app all my thermostats (rpi temp, livingroom temp, airco temp indoor and outdoor) react as "offline".
What is the issue here? How can I fix this?
Are you using master or beta, docker? Does the switches work as aspected?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

DewGew wrote: Friday 23 October 2020 8:38
Xavier82 wrote: Thursday 22 October 2020 23:23 hi all,

trying to sync my thermostat temp to google home.
no issues with sync but in the Google Home app all my thermostats (rpi temp, livingroom temp, airco temp indoor and outdoor) react as "offline".
What is the issue here? How can I fix this?
Are you using master or beta, docker? Does the switches work as aspected?
Using 1.8.13 master of dzga, using Domoticz ver 2020.2.
In domoticz everything works ok/reacts.
Only on Google Home these thermostat devices are "offline".
My devicelist in DZGA shows:
19 ToonBurnerName Selector Off
21 Toon Scenes Merged(Idx:123) Set Level: 50 % Woonkamer
23 Toon Auto Program Selector Set Level: 20 %
24 ToonTemperature Merged(Idx:123) 20.0 C Woonkamer
25 ToonThermostat Thermostat 19.0 Woonkamer
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Xavier82 wrote: Friday 23 October 2020 14:04
DewGew wrote: Friday 23 October 2020 8:38
Xavier82 wrote: Thursday 22 October 2020 23:23 hi all,

trying to sync my thermostat temp to google home.
no issues with sync but in the Google Home app all my thermostats (rpi temp, livingroom temp, airco temp indoor and outdoor) react as "offline".
What is the issue here? How can I fix this?
Are you using master or beta, docker? Does the switches work as aspected?
Using 1.8.13 master of dzga, using Domoticz ver 2020.2.
In domoticz everything works ok/reacts.
Only on Google Home these thermostat devices are "offline".
My devicelist in DZGA shows:
19 ToonBurnerName Selector Off
21 Toon Scenes Merged(Idx:123) Set Level: 50 % Woonkamer
23 Toon Auto Program Selector Set Level: 20 %
24 ToonTemperature Merged(Idx:123) 20.0 C Woonkamer
25 ToonThermostat Thermostat 19.0 Woonkamer
Dubble check that Thermostat idx must be a number above Temp/selector idx.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

In that case I think something goes wrong:
24 ToonTemperature Merged(Idx:123) 20.0 C Woonkamer
25 ToonThermostat Thermostat 19.0 Woonkamer

Domoticz IDX number 24 is the thermostat and measures the temperature.
Domoticz IDX number 25 is device where I can enter a setpoint (warmer/colder)

My config in DZGA is:

Code: Select all

Device_Config:
  123: # For thermostat devices only, Bug Thermostat idx must be a number above Temp idx
    room: 'Woonkamer'
    actual_temp_idx: '24' # Merge Actual temp from another temp device
    selector_modes_idx: '25' # Merge Modes from selector device
So this is not correct, so they should be switched?
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

Xavier82 wrote: Friday 23 October 2020 14:41 In that case I think something goes wrong:
24 ToonTemperature Merged(Idx:123) 20.0 C Woonkamer
25 ToonThermostat Thermostat 19.0 Woonkamer

Domoticz IDX number 24 is the thermostat and measures the temperature.
Domoticz IDX number 25 is device where I can enter a setpoint (warmer/colder)

My config in DZGA is:

Code: Select all

Device_Config:
  123: # For thermostat devices only, Bug Thermostat idx must be a number above Temp idx
    room: 'Woonkamer'
    actual_temp_idx: '24' # Merge Actual temp from another temp device
    selector_modes_idx: '25' # Merge Modes from selector device
So this is not correct, so they should be switched?
So I created a new dummy device so that the IDX number of the thermostat (actual temp) is higher then the selector:
DZGA config is now:

Code: Select all

Device_Config:
  123: # For thermostat devices only, Bug Thermostat idx must be a number above Temp idx
    room: 'Woonkamer'
    actual_temp_idx: '248' # Merge Actual temp from another temp device
    selector_modes_idx: '25' # Merge Modes from selector device
In the logging I now receive this error:

Code: Select all

ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'Temperature248'}, {'id': 'Light245'}, {'id': 'Temperature244'}]}}], 'requestId': '14461628510231035821'}: {'errorCode': 'unknownError'}
When doing voice command I get the notification that there is a unknown issue for 8 thermostat devices.
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Xavier82 wrote: Friday 23 October 2020 15:12
Xavier82 wrote: Friday 23 October 2020 14:41 In that case I think something goes wrong:
24 ToonTemperature Merged(Idx:123) 20.0 C Woonkamer
25 ToonThermostat Thermostat 19.0 Woonkamer

Domoticz IDX number 24 is the thermostat and measures the temperature.
Domoticz IDX number 25 is device where I can enter a setpoint (warmer/colder)

My config in DZGA is:

Code: Select all

Device_Config:
  123: # For thermostat devices only, Bug Thermostat idx must be a number above Temp idx
    room: 'Woonkamer'
    actual_temp_idx: '24' # Merge Actual temp from another temp device
    selector_modes_idx: '25' # Merge Modes from selector device
So this is not correct, so they should be switched?
So I created a new dummy device so that the IDX number of the thermostat (actual temp) is higher then the selector:
DZGA config is now:

Code: Select all

Device_Config:
  123: # For thermostat devices only, Bug Thermostat idx must be a number above Temp idx
    room: 'Woonkamer'
    actual_temp_idx: '248' # Merge Actual temp from another temp device
    selector_modes_idx: '25' # Merge Modes from selector device
In the logging I now receive this error:

Code: Select all

ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'Temperature248'}, {'id': 'Light245'}, {'id': 'Temperature244'}]}}], 'requestId': '14461628510231035821'}: {'errorCode': 'unknownError'}
When doing voice command I get the notification that there is a unknown issue for 8 thermostat devices.
After adding them to google app you need to do a sync, just press the sync button in settings
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

This is the error I get after I did the sync.....
Nielsch
Posts: 10
Joined: Saturday 19 August 2017 20:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Nielsch »

DewGew wrote: Sunday 18 October 2020 10:14
Nielsch wrote: Thursday 15 October 2020 22:06
DewGew wrote: Wednesday 01 April 2020 11:13
Try latest beta V1.7.4
I tried to add my Shelly 2 dimmer and have the same issue with Colorswitch White and found these messages. When I add this device I get a lot of error messages/time-outs. dzga is working fine if this device is not added. Should I still switch to the beta?
JSON output:

Code: Select all

{
	"ActTime" : 1602791972,
	"AstrTwilightEnd" : "20:37",
	"AstrTwilightStart" : "06:14",
	"CivTwilightEnd" : "19:20",
	"CivTwilightStart" : "07:31",
	"DayLength" : "10:41",
	"NautTwilightEnd" : "19:58",
	"NautTwilightStart" : "06:52",
	"ServerTime" : "2020-10-15 21:59:32",
	"SunAtSouth" : "13:25",
	"Sunrise" : "08:05",
	"Sunset" : "18:46",
	"app_version" : "2020.2",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "",
			"CustomImage" : 0,
			"Data" : "On",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareID" : 21,
			"HardwareName" : "Shelly MQTT",
			"HardwareType" : "Shelly MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "shellydimmer2-D8BFC01A01A1-0-dimmer",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2020-10-15 21:00:54",
			"Level" : 15,
			"LevelInt" : 15,
			"MaxDimLevel" : 100,
			"Name" : "Eettafellamp",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "On",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "White",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "431"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
What error do you get? It should work with latest master
Apologies for the delay. Just updated to 1.8.13 master: Error log:

Code: Select all

2020-10-24 20:29:22 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-10-24 20:29:22 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'ColorSwitch431'}]}}], 'requestId': '8700639713425937978'}: {'errorCode': 'unknownError'}
2020-10-24 20:29:28 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-10-24 20:29:28 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'ColorSwitch431'}]}}], 'requestId': '12942734137914028614'}: {'errorCode': 'unknownError'}
I have two Shelly Dimmers and both have the same issue. I can turn them on/off or dim them in Google Home but it says that the device does not respond.
samourai47
Posts: 50
Joined: Wednesday 06 March 2019 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by samourai47 »

Hello
I try to installe DZGA but i block
All seems good until developp/account linking/ test

When i continue on my smartphone to add the application i have this page:
Mysite.duckdns.org
404 not found

I dont undersatnd why
- In public url i put this adress: mysite.duckdns.org with a valid letsencrypt certificat
In config.yam i have
# Ngrok assigns random urls. When server restart the server gets a new url.
ngrok_tunnel: false
ngrok_auth_token: 'auth_token'

# Use SSL encryption in HTTP server if not using ngrok
use_ssl: true
ssl_key: # /etc/letsencrypt/live/mysite.duckdns.org/privkey.pem
ssl_cert: # /etc/letsencrypt/live/mysite.duckdns.org/fullchain.pem

# Login on Google Home app and configuration interface
auth_user: 'admin'
auth_pass: '?***********?'

# Google Assistant Settings:
ClientID: 'askenian'
ClientSecret: '36153615'

# Domoticz Settings:
Domoticz:
ip: 'http://192.168.0.120'
port: '8080'
roomplan: '0'
username: 'username'
password: 'password'
#switchProtectionPass: '1234' #Set this to false if ask for pin function is not needed
somme help please and sorry for my poor english
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

samourai47 wrote: Sunday 25 October 2020 11:00 Hello
I try to installe DZGA but i block
All seems good until developp/account linking/ test

When i continue on my smartphone to add the application i have this page:
Mysite.duckdns.org
404 not found

I dont undersatnd why
- In public url i put this adress: mysite.duckdns.org with a valid letsencrypt certificat
In config.yam i have
# Ngrok assigns random urls. When server restart the server gets a new url.
ngrok_tunnel: false
ngrok_auth_token: 'auth_token'

# Use SSL encryption in HTTP server if not using ngrok
use_ssl: true
ssl_key: # /etc/letsencrypt/live/mysite.duckdns.org/privkey.pem
ssl_cert: # /etc/letsencrypt/live/mysite.duckdns.org/fullchain.pem

# Login on Google Home app and configuration interface
auth_user: 'admin'
auth_pass: '?***********?'

# Google Assistant Settings:
ClientID: 'askenian'
ClientSecret: '36153615'

# Domoticz Settings:
Domoticz:
ip: 'http://192.168.0.120'
port: '8080'
roomplan: '0'
username: 'username'
password: 'password'
#switchProtectionPass: '1234' #Set this to false if ask for pin function is not needed
somme help please and sorry for my poor english
If you goto https://mysite.duckdns.org/settings do you get a valid certificate in your browser?
Dont forget to restart dzga after you change in config.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
samourai47
Posts: 50
Joined: Wednesday 06 March 2019 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by samourai47 »

DewGew wrote: Sunday 25 October 2020 11:06
If you goto https://mysite.duckdns.org/settings do you get a valid certificate in your browser?
Dont forget to restart dzga after you change in config.
I have 404 Not found...
I created a redirection with duckdns.org for install a valid letsencryt certificat
The problem?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest