-
Notifications
You must be signed in to change notification settings - Fork 402
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
Remote control with MQTT #584
Conversation
Hi @andreasbrett |
service definition file
@MiczFlor of course, let me see... Starting the daemonThe daemon is run by executing the daemon_mqtt_client.py script. It's just like the rfid reader daemon script and will run in an endless loop. How it worksPhoniebox' MQTT client connects to the MQTT server that is defined in the
depending on what the server expects (typically Mosquitto by Eclipse is used as a MQTT server in the smart home communities). Once connected it will publish messages to the Phoniebox' MQTT client will do the following things:
mqttBaseTopic/get/$attributeMQTT clients can (additionally to the periodic updates) request an attribute of Phoniebox. Sending an empty payload to Possible attributes
HelpSending empty payload to mqttBaseTopic/cmd/$commandMQTT clients can send commands to Phoniebox. Sending an empty payload to Possible commands
Possible commands (with parameters)
HelpSending empty payload to |
- fixed some major bugs of prior version - modified "get" and "set" topic to not listen to their payloads but rather their subtopics - renamed "set" topic to "cmd" - added a whole lot of commands and attributes - introduced 2 refresh intervals based on player state (playing vs idle)
Hi @andreasbrett |
Smart Home remote control with MQTT See wiki: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Smart-Home-remote-control-with-MQTT #584 #581
Awesome. Guess I got to give it another try. Last one failed. Stuck with a working MQTT polling. |
First implementation of #581
pip3 install paho-mqtt
)