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!