Python Plugin: Chromecast Topic is solved

Python and python framework

Moderator: leecollings

User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Chromecast

Post by EdwinK »

Ewaldharmsen wrote: Wednesday 12 December 2018 9:19
EdwinK wrote: Tuesday 11 December 2018 9:29

Code: Select all

2018-12-11 09:28:57.518 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.540 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.561 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.585 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
Can you remove the hardware, and all user variables, restart domoticz and re-add it?
For now, I've removed it all. Will look at this at some other time.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

Nautilus wrote: Wednesday 12 December 2018 22:51
Ewaldharmsen wrote: Wednesday 12 December 2018 9:19
EdwinK wrote: Tuesday 11 December 2018 9:29

Code: Select all

2018-12-11 09:28:57.518 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.540 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.561 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.585 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
Can you remove the hardware, and all user variables, restart domoticz and re-add it?
Thanks, tried this but now I'm not getting any devices created. Allow new hardware devices was on when I re-added it:

Code: Select all

2018-12-12 23:46:48.500 Status: (Chromecasts) Started.
2018-12-12 23:46:50.220 Status: (Chromecasts) Entering work loop.
2018-12-12 23:46:50.220 Status: (Chromecasts) Initialized version 3.0.2, author 'Tsjippy'
2018-12-12 23:46:50.223 Status: (Chromecasts) Checking if images are loaded
2018-12-12 23:46:50.223 Status: (Chromecasts) Starting up
2018-12-12 23:46:50.242 Error: (Chromecasts) 'onStart' failed 'ConnectionError'.
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 560 in '/home/pi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 272 in '/home/pi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 502 in '/home/pi/domoticz/plugins/ChromecastPlugin/plugin.py', function updateDevices
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 75 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/api.py', function get
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 60 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/api.py', function request
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 533 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/sessions.py', function request
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 646 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/sessions.py', function send
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 516 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/adapters.py', function send
2018-12-12 23:47:02.580 Error: (Chromecasts) http://127.0.0.1:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-12 23:47:12.805 (Chromecasts) Connecting to available chromecasts
2018-12-12 23:47:12.805 Status: (Chromecasts) Checking for available chromecasts
2018-12-12 23:47:21.791 (Chromecasts) Found these chromecasts: Musiikkihuone TV
2018-12-12 23:47:21.792 (Chromecasts) Registering listeners for Musiikkihuone TV
2018-12-12 23:47:21.792 (Chromecasts) Done registering listeners for Musiikkihuone TV
2018-12-12 23:47:21.836 (Chromecasts) The app of 'Musiikkihuone TV' has changed to Backdrop
2018-12-12 23:47:21.836 (Chromecasts) Will set the domoticz devices to off.
2018-12-12 23:47:21.836 (Chromecasts) Updated volume to 50
2018-12-12 23:47:21.792 Status: (Chromecasts) Connected to Musiikkihuone TV
2018-12-12 23:47:31.337 Error: (Chromecasts) http://127.0.0.1:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-12 23:47:41.323 Error: (Chromecasts) http://127.0.0.1:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.

I improved the code messaging in version 3.0.3.
Your variable can not be queried. If you use 3.0.3 it should give you the url on which it tries to get them.
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: Python Plugin: Chromecast

Post by dextm80 »

Code: Select all

 2018-12-19 01:20:28.209 Error: (Google Home) Could not get all variables. Used this url: http://192.168.1.58:8888/json.htm?type=command&param=getuservariables
2018-12-19 01:20:28.214 Error: (Google Home) Could not create 'Bagno', result was ERR
2018-12-19 01:20:28.220 Error: (Google Home) Could not create 'Chromecast Luigi', result was ERR
2018-12-19 01:20:28.225 Error: (Google Home) Could not create 'Cameretta', result was ERR
2018-12-19 01:20:28.230 Error: (Google Home) Could not create 'Cucina', result was ERR
2018-12-19 01:20:28.235 Error: (Google Home) Could not create 'Tutta la casa', result was ERR
2018-12-19 01:20:28.241 Error: (Google Home) 'onStart' failed 'KeyError'.
2018-12-19 01:20:28.241 Error: (Google Home) ----> Line 569 in '/home/luigi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-19 01:20:28.241 Error: (Google Home) ----> Line 277 in '/home/luigi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-19 01:20:28.241 Error: (Google Home) ----> Line 648 in '/home/luigi/domoticz/plugins/ChromecastPlugin/plugin.py', function getVariables 
With latest beta
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

So what happens if you paste http://192.168.1.58:8888/json.htm?type= ... rvariables into your browser?
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: Python Plugin: Chromecast

Post by dextm80 »

Code: Select all

{
   "status" : "OK",
   "title" : "GetUserVariables"
}
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: Chromecast

Post by jeroenkl »

Same issue here:
2018-12-20 08:10:57.757 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results.
2018-12-20 08:10:57.786 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results.

running latest beta and python plugin
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: Chromecast

Post by jeroenkl »

Ewaldharmsen wrote: Wednesday 19 December 2018 18:04 So what happens if you paste http://192.168.1.58:8888/json.htm?type= ... rvariables into your browser?
for me:
{
"result" : [
{
"LastUpdate" : "2018-12-16 09:19:49",
"Name" : "Huiskamer",
"Type" : "2",
"Value" : "",
"idx" : "1"
},
{
"LastUpdate" : "2018-12-16 09:19:49",
"Name" : "Badkamer",
"Type" : "2",
"Value" : "",
"idx" : "2"
},
mark.sellwood
Posts: 102
Joined: Tuesday 04 March 2014 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Surrey, UK
Contact:

Re: Python Plugin: Chromecast

Post by mark.sellwood »

I too see the error
2018-12-20 08:41:05.974 Error: (ChromeCast) Could not create 'Office speaker', result was ERR

If I run http://xxx.xxx.xxx.xxx:8080/json.htm?ty ... rvariables
I get :-
{
"result" : [
{
"LastUpdate" : "2018-11-25 08:59:13",
"Name" : "Front bedroom speaker",
"Type" : "2",
"Value" : "",
"idx" : "1"
},
{
"LastUpdate" : "2018-11-25 08:59:13",
"Name" : "Office speaker",
"Type" : "2",
"Value" : "",
"idx" : "2"
},
{
"LastUpdate" : "2018-11-26 23:21:10",
"Name" : "Lounge display",
"Type" : "2",
"Value" : "",
"idx" : "3"
}
],
"status" : "OK",
"title" : "GetUserVariables"
}

Running Domoticz V4.10300 with plugin 3.0.4
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
mark.sellwood
Posts: 102
Joined: Tuesday 04 March 2014 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Surrey, UK
Contact:

Re: Python Plugin: Chromecast

Post by mark.sellwood »

gut pull worked fine, no on 3.0.7
This time the errors I get are :-
2018-12-20 18:53:27.106 Error: (ChromeCast) Could not create 'Office speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Office speaker&vtype=2&vvalue=
2018-12-20 18:53:27.185 Error: (ChromeCast) Could not create 'Front bedroom speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... name=Front bedroom speaker&vtype=2&vvalue=
2018-12-20 18:53:27.265 Error: (ChromeCast) Could not create 'Lounge display', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Lounge display&vtype=2&vvalue=

I have tried
http://192.168.1.20:8080/json.htm?type= ... =2&vvalue=
and get
{
"status" : "ERR"
}
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Chromecast

Post by snellejellep »

mark.sellwood wrote: Thursday 20 December 2018 19:57 gut pull worked fine, no on 3.0.7
This time the errors I get are :-
2018-12-20 18:53:27.106 Error: (ChromeCast) Could not create 'Office speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Office speaker&vtype=2&vvalue=
2018-12-20 18:53:27.185 Error: (ChromeCast) Could not create 'Front bedroom speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... name=Front bedroom speaker&vtype=2&vvalue=
2018-12-20 18:53:27.265 Error: (ChromeCast) Could not create 'Lounge display', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Lounge display&vtype=2&vvalue=

I have tried
http://192.168.1.20:8080/json.htm?type= ... =2&vvalue=
and get
{
"status" : "ERR"
}
do you have under settings > settings > system > local networks:
192.168.1.*,127.0.0.*

otherwise it can not use the domoticz api because it needs a password but if you exclude your local network from requiring a password it will work
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: Chromecast

Post by jeroenkl »

Ewaldharmsen wrote: Thursday 20 December 2018 19:27 Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
Hmm after the update i've got:
2018-12-20 20:27:59.445 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results. ([0, Chromecast('192.168.2.15', port=8009, device=DeviceStatus(friendly_name='Badkamer', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID(xxxxxxxxxxxxxxxxxxxxx), cast_type='cast')), '', 'CONNECTED', 0])

local networks are set: 127.0.0.*;10.250.*.*;192.168.2.*
mark.sellwood
Posts: 102
Joined: Tuesday 04 March 2014 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Surrey, UK
Contact:

Re: Python Plugin: Chromecast

Post by mark.sellwood »

snellejellep wrote: Thursday 20 December 2018 20:21
mark.sellwood wrote: Thursday 20 December 2018 19:57 gut pull worked fine, no on 3.0.7
This time the errors I get are :-
2018-12-20 18:53:27.106 Error: (ChromeCast) Could not create 'Office speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Office speaker&vtype=2&vvalue=
2018-12-20 18:53:27.185 Error: (ChromeCast) Could not create 'Front bedroom speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... name=Front bedroom speaker&vtype=2&vvalue=
2018-12-20 18:53:27.265 Error: (ChromeCast) Could not create 'Lounge display', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Lounge display&vtype=2&vvalue=

I have tried
http://192.168.1.20:8080/json.htm?type= ... =2&vvalue=
and get
{
"status" : "ERR"
}
do you have under settings > settings > system > local networks:
192.168.1.*,127.0.0.*

otherwise it can not use the domoticz api because it needs a password but if you exclude your local network from requiring a password it will work
My local networks are set to 192.168.1.*;127.0.0.*
http://192.168.1.20:8080/json.htm?type= ... getversion
returns

{
"DomoticzUpdateURL" : "https://www.domoticz.com/download.php?c ... ine=armv7l",
"HaveUpdate" : false,
"Revision" : 10301,
"SystemName" : "linux",
"UseUpdate" : true,
"build_time" : "2018-12-20 18:46:47",
"dzvents_version" : "2.4.9",
"hash" : "b1521946",
"python_version" : "3.5.3 (default, Sep 27 2018, 17:25:39) \n[GCC 6.3.0 20170516]",
"status" : "OK",
"title" : "GetVersion",
"version" : "4.10301"
}
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

jeroenkl wrote: Thursday 20 December 2018 20:30
Ewaldharmsen wrote: Thursday 20 December 2018 19:27 Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
Hmm after the update i've got:
2018-12-20 20:27:59.445 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results. ([0, Chromecast('192.168.2.15', port=8009, device=DeviceStatus(friendly_name='Badkamer', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID(xxxxxxxxxxxxxxxxxxxxx), cast_type='cast')), '', 'CONNECTED', 0])

local networks are set: 127.0.0.*;10.250.*.*;192.168.2.*
I think your user variable is somehow not created. I have released version 3.0.8 with better error logging.
Can you check if there is a user variable called "'Badkamer"?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Chromecast

Post by EdwinK »

Code: Select all

Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:11.791 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:11.812 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([1, Chromecast('192.168.0.142', port=8009, device=DeviceStatus(friendly_name='Cast 2', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('f112c2a7-87dd-d729-82e9-279fa653cdee'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:11.833 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([0, Chromecast('192.168.0.109', port=8009, device=DeviceStatus(friendly_name='Cast 1', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('92415db4-01bf-e7aa-54b5-aadfe0683937'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.794 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([2, Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.815 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.837 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([1, Chromecast('192.168.0.142', port=8009, device=DeviceStatus(friendly_name='Cast 2', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('f112c2a7-87dd-d729-82e9-279fa653cdee'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.858 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([0, Chromecast('192.168.0.109', port=8009, device=DeviceStatus(friendly_name='Cast 1', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('92415db4-01bf-e7aa-54b5-aadfe0683937'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.752 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([2, Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.774 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.795 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([1, Chromecast('192.168.0.142', port=8009, device=DeviceStatus(friendly_name='Cast 2', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('f112c2a7-87dd-d729-82e9-279fa653cdee'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.816 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([0, Chromecast('192.168.0.109', port=8009, device=DeviceStatus(friendly_name='Cast 1', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('92415db4-01bf-e7aa-54b5-aadfe0683937'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:41.761 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([2, Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:41.782 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Python Plugin: Chromecast

Post by waaren »

API saveuservariable has changed in V4.10298 to adduservariable.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: Python Plugin: Chromecast

Post by dextm80 »

i've same problem:

Code: Select all

 2018-12-21 10:49:38.209 Error: (Chromecast) failed to load 'plugin.py', Python Path used was '/home/user/domoticz/plugins/ChromecastPlugin/:/usr/lib/python36.zip:/usr/lib/python3.6:/usr/lib/python3.6:/usr/lib/python3.6/lib-dynload'.
2018-12-21 10:49:38.209 Error: (Google Home) Module Import failed, exception: 'ModuleNotFoundError'
2018-12-21 10:49:38.209 Error: (Google Home) Module Import failed: ' Name: requests'
2018-12-21 10:49:38.209 Error: (Google Home) Error Line details not available. 
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
pele
Posts: 3
Joined: Friday 21 December 2018 10:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10304
Contact:

Re: Python Plugin: Chromecast

Post by pele »

Similar problem here

Code: Select all

2018-12-21 11:21:39.640 Status: (Chrome) Started.
2018-12-21 11:21:39.984 Error: (Chromecast) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/ChromecastPlugin/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2018-12-21 11:21:39.984 Error: (Chrome) Module Import failed, exception: 'ImportError'
2018-12-21 11:21:39.984 Error: (Chrome) Module Import failed: ' Name: requests'
2018-12-21 11:21:39.984 Error: (Chrome) Error Line details not available.
Plugin ver 3.0.8
PyChromecast ver 2.3.0
Domoticz Version: 4.10301, Build Hash: b1521946
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

waaren wrote: Friday 21 December 2018 10:40 API saveuservariable has changed in V4.10298 to adduservariable.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
Ah I did not know that, fixed in version 3.0.9
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: Chromecast

Post by jeroenkl »

Ewaldharmsen wrote: Friday 21 December 2018 8:41
jeroenkl wrote: Thursday 20 December 2018 20:30
Ewaldharmsen wrote: Thursday 20 December 2018 19:27 Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
Hmm after the update i've got:
2018-12-20 20:27:59.445 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results. ([0, Chromecast('192.168.2.15', port=8009, device=DeviceStatus(friendly_name='Badkamer', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID(xxxxxxxxxxxxxxxxxxxxx), cast_type='cast')), '', 'CONNECTED', 0])

local networks are set: 127.0.0.*;10.250.*.*;192.168.2.*
I think your user variable is somehow not created. I have released version 3.0.8 with better error logging.
Can you check if there is a user variable called "'Badkamer"?
I checked if the user variable are there, after a clean install: No they are not. Also not created with 3.0.9
To what string should badkamer set?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest