ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
475 stars 64 forks source link

HA sensor setup #66

Open jasondreher opened 2 years ago

jasondreher commented 2 years ago

I got this running perfectly on one pi, but when I moved on to another pi I cant get bot sensors to show in HA.

Can you just show how to set up a sensor manually in HA so it will work? I tried the below but it would not work.

- name: "testpi"
  state_topic: "home/nodes/sensor/rpi-mqttnodered/monitor"  

And I definitely have two items in MQTT image image

FYI, my MQTT is separate from my HA so not sure if that is causing issues

bsimmo commented 2 years ago

Did you change the name etc on the second Pi? It should not be the same as on your first pi. It then just shows up under MQTT on HA.

On Tue, 16 Aug 2022, 2:52 pm jasondreher, @.***> wrote:

I got this running perfectly on one pi, but when I moved on to another pi I cant get bot sensors to show in HA.

Can you just show how to set up a sensor manually in HA so it will work? I tried the below but it would not work.

  • name: "testpi" state_topic: "home/nodes/sensor/rpi-mqttnodered/monitor"

— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXNZ3GDOTBAGPQRLAS4LVZOMKJANCNFSM56V5VTRA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jasondreher commented 2 years ago

Both host names were originally different, one "Office" the other the default "raspberrypi". I did change the "Office" to "RA-Office" as it is running room assistant, just to be more clear. image image I changed it back to see what would happen, but the second one still has nothing image

jasondreher commented 2 years ago

any way to set this up as just a sensor? I set up the below and it pulls info but does not provide the right info

- name: "testpi"
  state_topic: "home/nodes/sensor/rpi-mqttnodered/monitor"  
  json_attributes_topic: "home/nodes/sensor/rpi-mqttnodered/monitor"