cooljimy84
(James Crook)
1
So i’ve got the latest HA (yay push bullet works again)
And i’ve setup the MycroftAI host as per the guide.
But i can’t see to get it to do any thing. If i got the services and put
domain
notify
service
notify
service data
{
“message”: “hello”
}
I get the following my the HA logs, and thats it…
2017-09-10 15:50:44 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=notify, service_data=message=hello, service_call_id=139987438038824-12205, service=notify>
Thats it, no errors, no speech from Mycroft.
The setup says
mycroft:
host: 10.0.0.7
But the pull request says
mycroft:
host: 10.0.0.7
notify:
Do i need to add the notify ? or just the Mycroft host bit? I’m also using push bullet, incase that causes issues.
cooljimy84
(James Crook)
2
Just did the same JSON for push bullet and it worked fine.
Do i need to install any thing on Mycroft ?
cooljimy84
(James Crook)
3
Just removed pushbullet so the only item i have is Mycroft and the same thing.
Looking at the Mycroft logs i can’t see any thing happening, but again there is no errors HASS side.
I’m going to try and find the pull request and have a quick look through, see if i can work out how to trigger it…
btotharye
(Brian Hopkins)
4
most likely the firewall is enabled on the mark 1 not allowing the websocket connection. Try doing ufw allow 8181 to allow the IP from all ranges.
You can see the output by doing ufw status to see if its locked down to certain IP’s atm for port 8181.
1 Like
cooljimy84
(James Crook)
5
OMG
I’m such a tool, it was that.
Also found that the original setup (on a different network) was all in there.
cooljimy84
(James Crook)
6
I’m having an issue calling it from a script.
2017-09-23 22:12:42 INFO (MainThread) [homeassistant.helpers.script] Script Air Quality: Running script
2017-09-23 22:12:42 INFO (MainThread) [homeassistant.helpers.script] Script Air Quality: Executing step call service
2017-09-23 22:12:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=mycroftai, domain=notify, service_call_id=140501258633000-15477, service_data=message=Hello, entity_id=notify.mycrofyai>
2017-09-23 22:12:42 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.mycroftai: extra keys not allowed @ data['entity_id']. Got 'notify.mycrofyai'
2017-09-23 22:12:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=140501258633000-15477>
2017-09-23 22:12:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=140501258633000-15476>
2017-09-23 22:12:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state script.air=off; last_triggered=2017-09-23T22:11:54.515952+01:00, friendly_name=Air Quality @ 2017-09-23T22:10:58.164681+01:00>, new_state=<state script.air=off; last_triggered=2017-09-23T22:12:42.124502+01:00, friendly_name=Air Quality @ 2017-09-23T22:10:58.164681+01:00>, entity_id=script.air>
2017-09-23 22:13:16 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=mycroftai, domain=notify, service_call_id=140501258633000-15478, service_data=message=make me>
2017-09-23 22:13:16 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=140501258633000-15478>
If i make the call from the dev tools, it works fine. However in a script i have
air:
alias: 'Air Quality'
sequence:
- service: notify.mycroftai
data:
entity_id: notify.mycroftai
message: Hello
but it just seems to do nothing and spits out
> 2017-09-23 22:12:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=mycroftai, domain=notify, service_call_id=140501258633000-15477, service_data=message=Hello, entity_id=notify.mycrofyai>
> 2017-09-23 22:12:42 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.mycroftai: extra keys not allowed @ data['entity_id']. Got 'notify.mycrofyai'
in the logs
cooljimy84
(James Crook)
7
don’t worry.
i didn’t need the extra “entity_id: notify.mycroftai”
so it looks like this now
alias: 'Air Quality'
sequence:
- service: notify.mycroftai
data:
message: Hello
sj3fk3
(Greg)
8
I can not get this to work…
If I use the mycroftapi “by hand” in python it works…
Do u get any errors in Hass ?
cooljimy84
(James Crook)
10
sorry to raise an old thread,
I can see that the code has the ability to send mouth_smile and other stuff.
Does any one have an example of how to send this ?
like
{
"message": "Boom",
"data": "mouth_smile"
}
cooljimy84
(James Crook)
11
I’m just gonna put this here, as we have run out of coffee…
/home/james/.homeassistant/deps/lib/python3.6/site-packages/mycroftapi/__init__.py
/usr/local/lib/python3.6/dist-packages/homeassistant/components/mycroft.py
/usr/local/lib/python3.6/dist-packages/homeassistant/components/notify/mycroft.py
stick this in the bottom .py and test when you get home and coffee
mycroft.blink_eyes(both)
mycroft.eyes_off()
mycroft.mouth_text(text)
cooljimy84
(James Crook)
12
Nope, just smiles strangley at me, and doesn’t animate.
keiner99
(Keiner99)
13
is there a way to notice more than one Mycroft instance?