-
Notifications
You must be signed in to change notification settings - Fork 218
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
Added MQTT messaging support #197
base: master
Are you sure you want to change the base?
Conversation
Ideally the way to do this would be to eliminate the need for HTTP commands all together and only use MQTT for the Alexa skill Problem is to do that via the Alexa skill I would need to build my own broker and handle the registration of devices. I'd also have to rewrite the Alexa skill back end. Ever set up a broker before or are there reliable free ones I can use for all users of this project? |
I use Raspberry Pi for home automation. If you have RPI, I would suggest to use Hypriot RPI image that has Docker support. With this setup you can very easily install Mosquito docker image and it is ready to use out of the box. |
I'll need something more robust than the Pi probably, skill does about 7000 commands a month for the userbase |
7000 a month is a very very low number for a broker, even on a RPI. Most brokers easily handle a couple of thousand a second on a standard computer, so cut that in 4 or whatever you feel is the right amount and you should still be nowhere near some limit. |
You can use the public Mosquitto broker, 7000/mo won't even register. |
Dear vsimonaitis, Thanks so much for this mqtt support. I think it's just what I was looking for (a way to use this blaster in a reverse sort of way with Home Assistant). I got it working today but one issue I have... the topics sent to my broker. I would like to have the blaster write/publish to homeassistant/sensor/irblaster or similar. like this maybe... I did some fiddling (very little) to try to set the topics but couldn't pull it off. Thanks anybody for any clues. |
Sends MQTT messages when signal is received or sent.
Also accepts JSON commands via /[host_name]/cmd