n8henrie / fauxmo

Emulated Belkin WeMo devices that work with the Amazon Echo
https://n8henrie.com/2016/02/fauxmo-home-automation-with-the-amazon-echo-raspberry-pi-and-homeassistant/
Other
371 stars 78 forks source link

Emulate TV #106

Closed Bobsilvio closed 4 years ago

Bobsilvio commented 4 years ago

Hello I have recently been approaching alexa. I created a skill (name = mediaserver control) for a mediaserver (linux) that I have at home, with internal API to call the commands http://192.168.178.100/api/switchon. Alexa ask mediaserver control turn on (turn off) Mediaserver Alexa ask mediaserver control to change channel on 6 (http://192.168.178.100/api/switchannel=6) and other commands Alexa doesn't read local IPs, so you have to use DNS. I was looking for a solution to emulate the mediaserver from linux like a TV to pass commands directly without using DNS (which needs to open ports) and also to launch commands like Alexa turn on mediaserver alexa changes the channel of the media server on 9

Is Fauxmo the right solution for me? I've tested the recognition and it works, but sees it as a catch. Do you know similar solutions? thank you

n8henrie commented 4 years ago

I'm not sure what you mean about DNS. Fauxmo would definitely be able to make some of those API calls locally.

Is Fauxmo the right solution for me?

I don't think so. It is limited to alexa turn on [device name] or alexa turn off [device name], I don't know of a good way to implement changing channels. You may be able to find a workaround with Routines, but I'll leave that investigation up to you.