Hi,
i have installed
unfortunately i am unable to turn off the lights, dimming, switching on, changing scenes work though.
Thanks in Advance
Hi,
i have installed
unfortunately i am unable to turn off the lights, dimming, switching on, changing scenes work though.
Thanks in Advance
Hi there @lbinna, great to have you here on the Forum.
In order to help troubleshoot, are you able to provide the following information for us:
Hi,
it is a raspberry pi 3 B
** Picroft enclosure platform version: 2018-03-14
** mycroft-core: 18.2.5
actually there is no error in the mycroft-skills.log, is there another log to look at ( sorry, new to all of this )?
8:01:04.138 - SKILLS - DEBUG - {“data”: {“lang”: “en-US”, “session”: “544b5f63-fbf0-4d03-94bf-14c1e4599a67”, “utterances”: [“switch off the lights”]}, “type”: “recognizer_loop:utterance”, “context”: {“client_name”: “mycroft_listener”, “ident”: “1525543262.7-458099352”}}
18:01:04.152 - SKILLS - DEBUG - {“data”: {“lang”: “en-US”, “skill_id”: 1549033615, “utterances”: [“switch off the lights”]}, “type”: “skill.converse.request”, “context”: null}
18:01:04.166 - SKILLS - DEBUG - {“data”: {“skill_id”: 1549033615, “result”: false}, “type”: “skill.converse.response”, “context”: null}
18:01:04.250 - SKILLS - DEBUG - {“data”: {“lang”: “en-US”, “skill_id”: 1819050239, “utterances”: [“switch off the lights”]}, “type”: “skill.converse.request”, “context”: null}
18:01:04.262 - SKILLS - DEBUG - {“data”: {“skill_id”: 1819050239, “result”: false}, “type”: “skill.converse.response”, “context”: null}
18:01:04.355 - SKILLS - DEBUG - {“data”: {“lang”: “en-US”, “skill_id”: 1406552044, “utterances”: [“switch off the lights”]}, “type”: “skill.converse.request”, “context”: null}
18:01:04.365 - SKILLS - DEBUG - {“data”: {“skill_id”: 1406552044, “result”: false}, “type”: “skill.converse.response”, “context”: null}
18:01:04.466 - mycroft.skills.intent_service:send_metrics:244 - DEBUG - Sending metric if opt_in is enabled
18:01:04.479 - SKILLS - DEBUG - {“data”: {“confidence”: 1.0, “target”: null, “utterance”: “switch off the lights”, “intent_type”: “1549033615:ActivateSceneIntent”, “BFEJADDGBFLightsKeyword”: “lights”, “tags”: [{“end_token”: 1, “start_token”: 1, “from_context”: false, “entities”: [{“confidence”: 1.0, “data”: [[“off”, “BFEJADDGBFOffKeyword”], [“off”, “BFEJADDGBFScene”], [“off”, “CACBFEBJCBReminderSkillStopVerb”]], “match”: “off”, “key”: “off”}], “key”: “off”, “match”: “off”}, {“BFEJADDGBFLightsKeyword”: [{“end_token”: 2, “start_token”: 2, “from_context”: false, “entities”: [{“confidence”: 1.0, “data”: [[“lights”, “BFEJADDGBFLightsKeyword”]], “match”: “lights”, “key”: “lights”}], “key”: “lights”, “match”: “lights”}]}], “BFEJADDGBFScene”: “off”}, “type”: “1549033615:ActivateSceneIntent”, “context”: {“client_name”: “mycroft_listener”, “ident”: “1525543262.7-458099352”, “target”: null}}
18:01:04.498 - phue - DEBUG - PUT /api/BPz8bA6YwcJ2lOi9DDoicbKLXYP1DA9OxKhYzepp/groups/0/action {‘scene’: u’5EfvGuuTTQMEFoO’}
18:01:04.503 - SKILLS - DEBUG - {“data”: {“name”: “PhillipsHueSkill.handler”}, “type”: “mycroft.skill.handler.start”, “context”: null}
18:01:04.512 - SKILLS - DEBUG - {“data”: {“expect_response”: false, “utterance”: “Setting the lights to off”}, “type”: “speak”, “context”: {“client_name”: “mycroft_listener”, “ident”: “1525543262.7-458099352”, “target”: null}}
18:01:04.529 - phue - DEBUG - [{“success”:{"/groups/0/action/scene":“5EfvGuuTTQMEFoO”}}]
18:01:04.539 - SKILLS - DEBUG - {“data”: {“name”: “PhillipsHueSkill.handler”}, “type”: “mycroft.skill.handler.complete”, “context”: null}
18:01:05.491 - mycroft.skills.settings:_request_my_settings:442 - DEBUG - getting skill settings from server for SkillInstallerSkill
message bus logs
18:01:02.710 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“session”: “544b5f63-fbf0-4d03-94bf-14c1e4599a67”, “utterance”: “hey mycroft”}, “type”: “recognizer_loop:wakeword”, “context”: null}
18:01:04.135 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“lang”: “en-US”, “session”: “544b5f63-fbf0-4d03-94bf-14c1e4599a67”, “utterances”: [“switch off the lights”]}, “type”: “recognizer_loop:utterance”, “context”: {“client_name”: “mycroft_listener”, “ident”: “1525543262.7-458099352”}}
18:01:04.149 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“lang”: “en-US”, “skill_id”: 1549033615, “utterances”: [“switch off the lights”]}, “type”: “skill.converse.request”, “context”: null}
18:01:04.163 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“skill_id”: 1549033615, “result”: false}, “type”: “skill.converse.response”, “context”: null}
18:01:04.247 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“lang”: “en-US”, “skill_id”: 1819050239, “utterances”: [“switch off the lights”]}, “type”: “skill.converse.request”, “context”: null}
18:01:04.260 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“skill_id”: 1819050239, “result”: false}, “type”: “skill.converse.response”, “context”: null}
18:01:04.350 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“lang”: “en-US”, “skill_id”: 1406552044, “utterances”: [“switch off the lights”]}, “type”: “skill.converse.request”, “context”: null}
18:01:04.363 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“skill_id”: 1406552044, “result”: false}, “type”: “skill.converse.response”, “context”: null}
18:01:04.468 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“confidence”: 1.0, “target”: null, “utterance”: “switch off the lights”, “intent_type”: “1549033615:ActivateSceneIntent”, “BFEJADDGBFLightsKeyword”: “lights”, “tags”: [{“end_token”: 1, “start_token”: 1, “from_context”: false, “entities”: [{“confidence”: 1.0, “data”: [[“off”, “BFEJADDGBFOffKeyword”], [“off”, “BFEJADDGBFScene”], [“off”, “CACBFEBJCBReminderSkillStopVerb”]], “match”: “off”, “key”: “off”}], “key”: “off”, “match”: “off”}, {“BFEJADDGBFLightsKeyword”: [{“end_token”: 2, “start_token”: 2, “from_context”: false, “entities”: [{“confidence”: 1.0, “data”: [[“lights”, “BFEJADDGBFLightsKeyword”]], “match”: “lights”, “key”: “lights”}], “key”: “lights”, “match”: “lights”}]}], “BFEJADDGBFScene”: “off”}, “type”: “1549033615:ActivateSceneIntent”, “context”: {“client_name”: “mycroft_listener”, “ident”: “1525543262.7-458099352”, “target”: null}}
18:01:04.491 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“name”: “PhillipsHueSkill.handler”}, “type”: “mycroft.skill.handler.start”, “context”: null}
18:01:04.504 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“expect_response”: false, “utterance”: “Setting the lights to off”}, “type”: “speak”, “context”: {“client_name”: “mycroft_listener”, “ident”: “1525543262.7-458099352”, “target”: null}}
18:01:04.536 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“name”: “PhillipsHueSkill.handler”}, “type”: “mycroft.skill.handler.complete”, “context”: null}
18:01:05.648 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {“side”: “b”}, “type”: “enclosure.eyes.blink”, “context”: null}
18:01:05.663 - mycroft.messagebus.service.ws:on_message:41 - DEBUG - {“data”: {}, “type”: “recognizer_loop:audio_output_start”, “context”: null}
admin logs
{‘type’: ‘recognizer_loop:record_end’, ‘context’: None, ‘data’: {}}
{‘type’: ‘recognizer_loop:wakeword’, ‘context’: None, ‘data’: {‘session’: ‘544b5f63-fbf0-4d03-94bf-14c1e4599a67’, ‘utterance’: ‘hey mycroft’}}
{‘type’: ‘recognizer_loop:utterance’, ‘context’: {‘client_name’: ‘mycroft_listener’, ‘ident’: ‘1525543262.7-458099352’}, ‘data’: {‘lang’: ‘en-US’, ‘session’: ‘544b5f63-fbf0-4d0
3-94bf-14c1e4599a67’, ‘utterances’: [‘switch off the lights’]}}
{‘type’: ‘skill.converse.request’, ‘context’: None, ‘data’: {‘lang’: ‘en-US’, ‘skill_id’: 1549033615, ‘utterances’: [‘switch off the lights’]}}
{‘type’: ‘skill.converse.response’, ‘context’: None, ‘data’: {‘result’: False, ‘skill_id’: 1549033615}}
{‘type’: ‘skill.converse.request’, ‘context’: None, ‘data’: {‘lang’: ‘en-US’, ‘skill_id’: 1819050239, ‘utterances’: [‘switch off the lights’]}}
{‘type’: ‘skill.converse.response’, ‘context’: None, ‘data’: {‘result’: False, ‘skill_id’: 1819050239}}
{‘type’: ‘skill.converse.request’, ‘context’: None, ‘data’: {‘lang’: ‘en-US’, ‘skill_id’: 1406552044, ‘utterances’: [‘switch off the lights’]}}
{‘type’: ‘skill.converse.response’, ‘context’: None, ‘data’: {‘result’: False, ‘skill_id’: 1406552044}}
{‘type’: ‘1549033615:ActivateSceneIntent’, ‘context’: {‘target’: None, ‘client_name’: ‘mycroft_listener’, ‘ident’: ‘1525543262.7-458099352’}, ‘data’: {‘utterance’: ‘switch off
the lights’, ‘confidence’: 1.0, ‘BFEJADDGBFScene’: ‘off’, ‘BFEJADDGBFLightsKeyword’: ‘lights’, ‘intent_type’: ‘1549033615:ActivateSceneIntent’, ‘target’: None, ‘tags’: [{‘k
ey’: ‘off’, ‘from_context’: False, ‘end_token’: 1, ‘entities’: [{‘key’: ‘off’, ‘confidence’: 1.0, ‘data’: [[‘off’, ‘BFEJADDGBFOffKeyword’], [‘off’, ‘BFEJADDGBFScene’], [‘off’,
‘CACBFEBJCBReminderSkillStopVerb’]], ‘match’: ‘off’}], ‘match’: ‘off’, ‘start_token’: 1}, {‘BFEJADDGBFLightsKeyword’: [{‘key’: ‘lights’, ‘from_context’: False, ‘end_token’: 2,
‘entities’: [{‘key’: ‘lights’, ‘confidence’: 1.0, ‘data’: [[‘lights’, ‘BFEJADDGBFLightsKeyword’]], ‘match’: ‘lights’}], ‘match’: ‘lights’, ‘start_token’: 2}]}]}}
{‘type’: ‘mycroft.skill.handler.start’, ‘context’: None, ‘data’: {‘name’: ‘PhillipsHueSkill.handler’}}
{‘type’: ‘speak’, ‘context’: {‘target’: None, ‘client_name’: ‘mycroft_listener’, ‘ident’: ‘1525543262.7-458099352’}, ‘data’: {‘expect_response’: False, ‘utterance’: ‘Setting th
e lights to off’}}
{‘type’: ‘mycroft.skill.handler.complete’, ‘context’: None, ‘data’: {‘name’: ‘PhillipsHueSkill.handler’}}
{‘type’: ‘enclosure.eyes.blink’, ‘context’: None, ‘data’: {‘side’: ‘b’}}
{‘type’: ‘recognizer_loop:audio_output_start’, ‘context’: None, ‘data’: {}}
{‘type’: ‘enclosure.mouth.viseme’, ‘context’: None, ‘data’: {‘code’: ‘4’, ‘until’: 1525543265.734072}}
the light however stay on.
I had difficulty getting this skill to turn off my lights as well.
@lbinna and @baconator, in your Phillips Hue App, do you have a Scene named ‘Off?’ Based on the log output, and Mycroft’s verbal response, Mycroft is trying to activate a Scene, rather than turning off the lights:
utterance’: ‘switch off
the lights’, ‘confidence’: 1.0, ‘BFEJADDGBFScene’: ‘off’, ‘BFEJADDGBFLightsKeyword’: ‘lights’, ‘intent_type’: ‘1549033615:ActivateSceneIntent
If you find a Scene in the app called ‘Off,’ if you delete it, and then either restart Mycroft, or ask him to ‘connect my lights,’ he should reload all the scene data, and then will hopefully be able to
actually turn off your lights.
Note that if you have Scene Sharing enabled in the app, the Bridge (the hub, plugged into your network) may have multiple copies off the same scene, and any that are called ‘Off’ will need to be deleted.
Since this has hit both of you, and I believe myself when I reset my Bridge a while back, I think Phillips may be creating this as a default scene. I’ll look into a way to resolve this within the skill (e.g special casing that scene, or an intent to find and delete the offensive scenes for you).
Please let me know if you’re able to find and delete the scene, and if that works for you.
-Chris
I was wondering why it kept calling scenes, and you are right, i have actually 3 scenes called Off
“7bSIpInaDPxMm69”: {
“name”: “Off”,
“lights”: [
“10”,
“26”,
“28”
],
“owner”: “xxx”,
“recycle”: true,
“locked”: true,
“appdata”: {
“version”: 1,
“data”: “QLSCq_r02_d19”
},
“picture”: “”,
“lastupdated”: “2017-04-13T10:48:21”,
“version”: 2
},
“5EfvGuuTTQMEFoO”: {
“name”: “Off”,
“lights”: [
“12”,
“16”
],
“owner”: “xxxxx”,
“recycle”: true,
“locked”: true,
“appdata”: {
“version”: 1,
“data”: “EnhdP_r01_d19”
},
“picture”: “”,
“lastupdated”: “2017-04-13T10:48:23”,
“version”: 2
},
“qyMtmf5JeggXx6j”: {
“name”: “Off”,
“lights”: [
“11”,
“34”
],
“owner”: “xxx”,
“recycle”: true,
“locked”: true,
“appdata”: {
“version”: 1,
“data”: “GX7mq_r05_d19”
},
“picture”: “”,
“lastupdated”: “2017-07-14T13:29:44”,
“version”: 2
},
but they do not show up in the hue app, or at least i do not find them, will try to delete them via curl and report back. Thanks a lot!
Looks like i would have to delete my 3 Taps in order to be able to delete the rules
curl -s http://“ip”/api/“user”/scenes | jq “.” | tee > scenes.txt
cat scenes.txt | grep -B 2 -i off
},
“7bSIpInaDPxMm69”: {
“name”: “Off”,
},
“5EfvGuuTTQMEFoO”: {
“name”: “Off”,
},
“qyMtmf5JeggXx6j”: {
“name”: “Off”,
curl -s http://“ip”/api/“user”/rules | jq “.” | tee > rules.txt
“1”: {
“name”: “Tap 6.1”,
“owner”: “”,
“created”: “2017-04-13T10:48:22”,
“lasttriggered”: “2018-05-03T06:54:54”,
“timestriggered”: 20,
“status”: “enabled”,
“recycle”: false,
“conditions”: [
{
“address”: “/sensors/6/state/buttonevent”,
“operator”: “eq”,
“value”: “34”
},
{
“address”: “/sensors/6/state/lastupdated”,
“operator”: “dx”
}
],
“actions”: [
{
“address”: “/groups/2/action”,
“method”: “PUT”,
“body”: {
“scene”: “7bSIpInaDPxMm69”
}
}
]
curl --request DELETE http://“ip”/api/“user”/scenes/7bSIpInaDPxMm69
[{“error”:{“type”:403,“address”:"/scenes/7bSIpInaDPxMm69",“description”:“Scene could not be deleted, scene is locked by schedule/rule.”}}]
Ok, i removed the off funktion from the main buttons of the taps via the app, then i deleted all 3 scenes
curl --request DELETE http://“ip”/api/“user”/scenes/7bSIpInaDPxMm69
[{“success”:"/scenes/7bSIpInaDPxMm69 deleted"}][root@ipa ~]#
curl --request DELETE http://“ip”/api/“user”/scenes/5EfvGuuTTQMEFoO
[{“success”:"/scenes/5EfvGuuTTQMEFoO deleted"}]
curl --request DELETE http://“ip”/api/“user”/scenes/qyMtmf5JeggXx6j
curl -s http://“ip”/api/“user”/scenes | jq “.” | tee > scenes4.txt
cat scenes4.txt | grep -B2 -i off
-> no results returned
now switching off works ( tested in two rooms ), unfortunately my tap off buttons do not 
Yep. One scene named off. Guessing related to wireless dimmer settings.
Interesting, I wouldn’t have expected it to be tied to the taps. Glad to hear the skill is working, but I feel bad that the taps aren’t now. Can you create a new scene called something other than ‘Off,’ with the same settings as the deleted scenes, and assign that to the tap button?
At some point in the near future (hopefully this week), I’ll have to do some work on the skill in prep of the upcoming changes the Mycroft team is making. I’ll look at special casing the ‘Off’ scene then. I imagine if it’s tied to hardware, it’s going to trip a lot of people up, potentially repeatedly, and it’s unreasonable to expect people to delete them each time.
Do not feel bad :), my hue env needs to be reorganized anyway. I will check if i can create an off scene with a different name. I still have my phone to turn them off.
I really appreciate your help here and the great work you have done on the skill. Thanks!