-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commands to diyHue does not work #632
Comments
Can you check if the light that you requested has 'xy' state from the config.json. Load your config.json in this site https://jsoneditoronline.org this will make searching easy. On the right top, choose Open and open from disk and then select your config.json file. |
@shivasiddharth I don't have "config.json" file, only config.yaml and config.js. Which one should i upload? |
![screenshot from 2018-11-28 15-43-42](https://user-images.githubusercontent.com/25077676/49143068-6d203680-f324-11e8-94a8-cde8a6710d15 I have Hall, Kitchen and Lobby lights. |
As i remember this issue was started after you changed diyHue installation process. You removed diyHue from GassistPi installation script. Now we should follow the guidelines given in the diyHue's Wiki to setup the Emulated Hue Service. |
YOu should have a config.json file in the /opt/hue-emulator/ directory. SOmething like this. https://github.com/mariusmotea/diyHue/blob/master/BridgeEmulator/config.json |
I just realized that it's not relared light name. It crashes when i use any lights name. ● gassistpi-ok-google.service - Google Assistant-Voice Nov 29 19:07:52 magicmirror python[428]: File "/home/pi/GassistPi/src/actions.py", line 1262, in hue_control |
Manually run the assistant. Line 1262 in f9b3994
|
I guess you have placed the print command in the wrong place. Why is even the print command getting printed ? |
I've added above line "print(hueconfig['lights'][lightindex])" into actions.py file and run manually.
ON_MUTED_CHANGED: ON_CONVERSATION_TURN_STARTED During handling of the above exception, another exception occurred: Traceback (most recent call last): |
|
Sorry. i forgot to say that i reinstalled diyHue program and not able to link emulated bridge with Hue app. |
Hi @shiva pi@raspberrypi:~ $ sudo systemctl status gassistpi.service Nov 30 15:15:32 raspberrypi python[392]: ON_CONVERSATION_TURN_STARTED Nov 30 15:15:44 raspberrypi python[392]: tts.save(ttsfilename) |
Run the following:
|
pi@raspberrypi:~ $ source env/bin/activate |
Now try the sonoff commands, it should not crash. |
pi@raspberrypi:~ $ sudo systemctl status gassistpi.service Nov 30 16:20:35 raspberrypi python[382]: response = meth(req, response) |
Tasmota light is triggered and than it crashes with above output. |
Manually run the assistant and post th terminal output after giving the tasmota command. Service status does not provide full information. |
Sure.. ON_CONVERSATION_TURN_STARTED |
Run:
replace your existing actions.py file with the new file from master. These errors should not appear. |
Yes. I did and now it works.. Many thanks Shiva!!! |
Will fix the hue error over this weekend. |
Hi Shiva!
A few days ago, I began to notice strange behavior, when i try to send voice command with with wrong light's name GassisPi freezes and stops answering me. Also, "Ok, Google" command stops working.
I have Sonoff - Tasmota devices and i've added them in config file. In same time Hue Bridge is runing on same Pi. But when i send voice commands with undefined light name, my gassistpi-ok-google.service freezes with below error..The diyhue guys seems changed the call patterns.
● gassistpi-ok-google.service - Google Assistant-Voice
Loaded: loaded (/lib/systemd/system/gassistpi-ok-google.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-11-15 20:46:57 +06; 21h ago
Main PID: 423 (python)
CGroup: /system.slice/gassistpi-ok-google.service
└─423 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --device_model_id saved-model-id
Nov 16 18:06:54 magicmirror python[423]: File "/home/pi/GassistPi/src/actions.py", line 1247, in hue_control
Nov 16 18:06:54 magicmirror python[423]: currentxval=hueconfig['lights'][lightindex]['state']['xy'][0]
Nov 16 18:06:54 magicmirror python[423]: KeyError: 'xy'
Nov 16 18:06:54 magicmirror python[423]: During handling of the above exception, another exception occurred:
Nov 16 18:06:54 magicmirror python[423]: Traceback (most recent call last):
Nov 16 18:06:54 magicmirror python[423]: File "/home/pi/GassistPi/src/main.py", line 673, in
Nov 16 18:06:54 magicmirror python[423]: Myassistant().main()
Nov 16 18:06:54 magicmirror python[423]: File "/home/pi/GassistPi/src/main.py", line 457, in main
Nov 16 18:06:54 magicmirror python[423]: except Keyerror:
Nov 16 18:06:54 magicmirror python[423]: NameError: name 'Keyerror' is not defined
The text was updated successfully, but these errors were encountered: