SIP
Hass Plugin - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Plugin questions (https://nosack.com/sipforum/forumdisplay.php?fid=6)
+--- Thread: Hass Plugin (/showthread.php?tid=275)



Hass Plugin - DrLabel - 2022 Jan 18

Is the Hass plugin working?


RE: Hass Plugin - dan - 2022 Jan 19

(2022 Jan 18, 09:19 AM)DrLabel Wrote: Is the Hass plugin working?

As as far as I know.
That plugin was contributed by a SIP user who spent a lot of time developing it. I don't have Home Assistant so I don't have a way to test it.

Dan


RE: Hass Plugin - DrLabel - 2022 Jan 20

(2022 Jan 19, 03:42 PM)dan Wrote:
(2022 Jan 18, 09:19 AM)DrLabel Wrote: Is the Hass plugin working?

As as far as I know.
That plugin was contributed by a SIP user who spent a lot of time developing it. I don't have Home Assistant so I don't have a way to test it.

Dan

I can't put it to work....

Is installed :
https://photos.app.goo.gl/jFdwTmSTJ2En462N7
but don't publish anything to mqtt server :
https://photos.app.goo.gl/H8NwCV15DnTRXQLv9

my log:
Jan 20 23:19:15 raspberrypi systemd[1]: Started SIP.
Jan 20 23:19:16 raspberrypi sip[4137]: Ignoring exception while loading the mqtt_hass plug-in.
Jan 20 23:19:16 raspberrypi sip[4137]: No module named slugify
Jan 20 23:19:17 raspberrypi sip[4137]: MQTT publish UP
Jan 20 23:19:17 raspberrypi sip[4137]: Messge from Signaling plugin!: Just an example!
Jan 20 23:19:17 raspberrypi sip[4137]: plugins loaded:
Jan 20 23:19:17 raspberrypi sip[4137]: mobile_app
Jan 20 23:19:17 raspberrypi sip[4137]: mqtt
Jan 20 23:19:17 raspberrypi sip[4137]: mqtt_schedule
Jan 20 23:19:17 raspberrypi sip[4137]: mqtt_zones
Jan 20 23:19:17 raspberrypi sip[4137]: plugin_manager
Jan 20 23:19:17 raspberrypi sip[4137]: relay_board
Jan 20 23:19:17 raspberrypi sip[4137]: signaling_examples
Jan 20 23:19:17 raspberrypi sip[4137]: system_update
Jan 20 23:19:17 raspberrypi sip[4137]: weather_level_adj
Jan 20 23:19:17 raspberrypi sip[4137]: Starting timing loop
Jan 20 23:19:17 raspberrypi sip[4137]: A new day has started.
Jan 20 23:19:19 raspberrypi sip[4137]: http://192.168.1.123:80/
Jan 20 23:19:21 raspberrypi sip[4137]: Checking weather status...
Jan 20 23:19:22 raspberrypi sip[4137]: Current temperature:
Jan 20 23:19:22 raspberrypi sip[4137]: 6.9deg.C
Jan 20 23:19:22 raspberrypi sip[4137]: ________________________________
Jan 20 23:19:22 raspberrypi sip[4137]: Daily irrigation:
Jan 20 23:19:22 raspberrypi sip[4137]: 3.0mm
Jan 20 23:19:22 raspberrypi sip[4137]: Total rainfall:
Jan 20 23:19:22 raspberrypi sip[4137]: 0.0mm
Jan 20 23:19:22 raspberrypi sip[4137]: Water needed (3days):
Jan 20 23:19:22 raspberrypi sip[4137]: 0.0mm
Jan 20 23:19:22 raspberrypi sip[4137]: ________________________________
Jan 20 23:19:22 raspberrypi sip[4137]: Irrigation needed:
Jan 20 23:19:22 raspberrypi sip[4137]: 0.0mm
Jan 20 23:19:22 raspberrypi sip[4137]: Weather Adjustment:
Jan 20 23:19:22 raspberrypi sip[4137]: 0%
Jan 20 23:19:22 raspberrypi sip[4137]: 192.168.1.228:42006 - - [20/Jan/2022 23:19:22] "HTTP/1.1 GET /" - 200 OK
Jan 20 23:19:23 raspberrypi sip[4137]: 192.168.1.228:42010 - - [20/Jan/2022 23:19:23] "HTTP/1.1 GET /" - 200 OK
Jan 20 23:19:23 raspberrypi sip[4137]: 192.168.1.228:42006 - - [20/Jan/2022 23:19:23] "HTTP/1.1 GET /" - 200 OK
Jan 20 23:19:23 raspberrypi sip[4137]: 192.168.1.228:42010 - - [20/Jan/2022 23:19:23] "HTTP/1.1 GET /" - 200 OK
Jan 20 23:19:23 raspberrypi sip[4137]: 192.168.1.228:42006 - - [20/Jan/2022 23:19:23] "HTTP/1.1 GET /" - 200 OK
Jan 20 23:19:24 raspberrypi sip[4137]: 192.168.1.228:42012 - - [20/Jan/2022 23:19:24] "HTTP/1.1 GET /api/status" - 200 OK
Jan 20 23:19:24 raspberrypi sip[4137]: 192.168.1.228:42006 - - [20/Jan/2022 23:19:24] "HTTP/1.1 GET /api/log" - 200 OK
Jan 20 23:19:24 raspberrypi sip[4137]: 192.168.1.228:42006 - - [20/Jan/2022 23:19:24] "HTTP/1.1 GET /api/log" - 200 OK

pi@raspberrypi:~ $ python3 -m pip install python-slugify --upgrade
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: python-slugify in /usr/local/lib/python3.7/dist-packages (5.0.2)
Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in /usr/local/lib/python3.7/dist-packages (from python-slugify) (1.3)

What can I do more ?


RE: Hass Plugin - dan - 2022 Jan 21

Is SIP running under Python3?
It should be started with:
Code:
sudo python3 sip.py


It looks like python-slugify in installed for python3 but the plugin is not finding it. That could indicate that SIP is running under Python2.

When running under Python3 you also need to install the Python3 version of RPi.GPIO
Code:
sudo apt install python3-rpi.gpio



RE: Hass Plugin - DrLabel - 2022 Jan 21

Is fixed was python3
but to run mqqt again I have to do :
sudo pip3 install paho-mqtt

Thanks for the help


RE: Hass Plugin - OldSurferDude - 2023 Jan 05

I installed paho-mqtt and slugify before loading the HASS plugin. What happens next? Do I need to create a program? What are the next steps to get SIP talking to HA?