MQTT how do you make it go? #293
Replies: 12 comments 6 replies
-
Welcome! For integration with home assistant the "mqtt_hass" plugin is for just that purpose. It requires running Do you have a MQTT broker installed on your network? If not Mosquitto is a good one: Once you have a broker available, You just need to add the URL of the broker to the "MQTT Broker Host:" field on the MQTT plugin setup page. Most of the other settings can use the defaults. The "SIP didn't restart" message is not a problem It just means that SIP is running from the command line. When SIP tries to restart it relies on the "systemctl restart sip" command which is available when the systemd sip.service is installed. Dan |
Beta Was this translation helpful? Give feedback.
-
It should just be 192.168.1.142 |
Beta Was this translation helpful? Give feedback.
-
The mqtt_zones plugin broadcast information when a station is turned on or off. It sends a list of all stations ("zone_list":) represented by 0 for off stations and 1 for running stations and also a dictionary ("zone_dict") showing each station name and it's status 1 or 0. Do you have a way to observe the MQTT traffic such as MQTT Explorer? As far as the HA integration, I am not a HA user so I can't help with that. |
Beta Was this translation helpful? Give feedback.
-
When I click on [RUN NOW] I see the output from SIP (running from the command line on my RPi) is |
Beta Was this translation helpful? Give feedback.
-
That shows the traffic from the RPi to the system you are using to view SIP's web based user interface. |
Beta Was this translation helpful? Give feedback.
-
One thing that is not real obvious is on the MQTT_zones plugin setup page you need to click the "Submit" button at the bottom of the page before it will work. |
Beta Was this translation helpful? Give feedback.
-
Well, that didn't work, Dan :( I had seen [SUBMIT], but just to be sure, I uninstalled the MQTT plugins and did the install, enable, configure (with [SUBMIT], but still no joy. hmmmmmmm? I know that the ip address and port are working because MQTT Explorer and MySensors are seeing it. The ethernet connection is good because MySensors is running on the same RPi. I checked that Paho-mqtt is installed. I set the program to run automatically and that didn't result in data going to the MQTT broker. I appreciate your help. OSD |
Beta Was this translation helpful? Give feedback.
-
In the left panel of MQTT Explorer do you see SIP or sip listed? Also, what version OS are you running on the Pi? |
Beta Was this translation helpful? Give feedback.
-
I flashed a new image of Raspberry Pi OS Lite (32-bit) Bullseye on an SD card from SanDisk. git was not preinstalled.
then the install per the wiki. Then I checked to see if this worked and set the software's webserver IP address . Then I terminated SIP to begin install the components for MQTT. Each step of the way the checked to see if SIP still worked.
Then I installed and enabled the MQTT plugin, restarted SIP, configured the MQTT plugin, restarted SIP At this point, MQTT Explorer shows a SIP topic with data of "UP" (or "DOWN" if SIP is not running) Installed, enabled, configured, the other MQTT plugins and I have checked, with a simple Program, that Zones is working as expected. Now I must express my embarrassment by pointing out that my problem was probably an inadequate or bad SD card. I have learned a hard lesson, unfortunately at your expense. I appreciate the time you took and your advice was spot on. Alas, my problem was hardware, not software. Sincerely, thank you! OSD |
Beta Was this translation helpful? Give feedback.
-
Fantastic! Yes I was scratching my head about your problem but I got some new dandruff shampoo and that should help. Dan |
Beta Was this translation helpful? Give feedback.
-
I have configured my 25 zone irrigation hardware to be controlled by MySensors / MQTT / Home Assistant. At this point, all I can do is run a zone (station) by putting data into the Zone topic, then the Duration Topic, then Start, topic. Now I need a UI for programing the irrigation and it looks like SIP will do it.
I just found SIP this week, so I'm almost at zero on the learning curve. I see that I will need most of the MQTT plugins, but I can't figure out how to integrate them and configure them.
(note, I keep getting "SIP didn't restart. Restart from command line" is that a problem?)
Now how do I configure:
I look forward to being a member of this community
-OSD
Beta Was this translation helpful? Give feedback.
All reactions