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
459 stars 64 forks source link

Entities created on Home Assistant are not consistent #117

Closed cagriy closed 10 months ago

cagriy commented 10 months ago

Checklist:

Release with the issue: v1.8.5 Last working release (if known): First time install Hardware, Operating System, Python version: Pi Zero W Linux version 5.10.103+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) Python 3.7.3

Description of problem: Possibly I am making a mistake !

When I run the reporter it gets all the metrics correctly and from the command line output it sends a single MQTT message to HA with all the entries under "info" key.

However on HA I see 5 entities: disk, memory, cpu, temp and one called monitor with everything in it.

Especially because host_name also stays in the "monitor' entity, the monitor card complains that there is no host_name entity available.

I am trying to understand how disk, cpu, memory and temp are correctly extracted but not the rest of the metrics.

Screenshot 2023-11-16 at 16 27 26

Run our report script 'genBugInfo' on your failing device and include the output here:

Python errors shown in the logs (if applicable):

Additional information:

bsimmo commented 10 months ago

If you read the documentation you'll see how to add the data you want, it is all send as attributes under monitor.

It's the way it was setup for his intended purpose. At some point it could all do wit coming out and being individual entities so home assistant can use them better, with voice and automations. Iirc HA is moving away from attributes if it can.

It also need to be updated to the newer mqtt autodiscovery methods.

But the documents show you have to add tiles etc with the details you want.

On Thu, 16 Nov 2023, 16:28 Cagri Yucel, @.***> wrote:

Checklist:

  • [x ] I updated to the latest version available
  • [x ] I checked that my MQTT broker is otherwise working

Release with the issue: v1.8.5 Last working release (if known): First time install Hardware, Operating System, Python version: Pi Zero W Linux version 5.10.103+ @.***) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) Python 3.7.3

Description of problem: Possibly I am making a mistake !

When I run the reporter it gets all the metrics correctly and from the command line output it sends a single MQTT message to HA with all the entries under "info" key.

However on HA I see 5 entities: disk, memory, cpu, temp and one called monitor with everything in it.

Especially because host_name also stays in the "monitor' entity, the monitor card complains that there is no host_name entity available.

I am trying to understand how disk, cpu, memory and temp are correctly extracted but not the rest of the metrics. [image: Screenshot 2023-11-16 at 16 27 26] https://user-images.githubusercontent.com/1134069/283524206-9d816684-57eb-4392-a13d-b43d8382e144.png

Run our report script 'genBugInfo' on your failing device and include the output here:

Python errors shown in the logs (if applicable):

Additional information:

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

cagriy commented 10 months ago

Hi @bsimmo , all sorted, thank you.