hjelev / rpi-mqtt-monitor

Raspberry Pi MQTT Monitor gathers system information and sends it to a MQTT server.
GNU General Public License v3.0
155 stars 41 forks source link

Feature request: Connectivity sensor #89

Open CFenner opened 5 months ago

CFenner commented 5 months ago

Use last will to implement a connectivity sensor.

https://eclipse.dev/paho/files/paho.mqtt.python/html/client.html#paho.mqtt.client.Client.will_set

Bildschirmfoto 2024-02-13 um 21 44 45
silviu-social1st-ro commented 2 months ago

Hello! A status sensor would be awesome! I found your project while i was trying to improvise a bash script to update mqtt with info from another host. I have multiple computers in my house and i would like to have them intergrated into HomeAssistant and also to be able to wake them over lan. however, if i use default wake on lan switch from homeassistant, the machine is being waken by the homeassistant ping. so i wanted to have the status in homeassistant via mqtt, not ping.

your script is very efficient and well built. could you add, please, a status sensor? and maybe an action to wake over lan? :D

thanks!

hjelev commented 2 months ago

Status/Connectivity sensor is implemented in v0.9.3