Closed gregewing closed 1 year ago
Also, the hddtemp integration works in containers of you assume that the data is coming from a separate container on the same host and you treat it like its a remote host ( I have this working ) but now I want o add in monitoring for additional remote hosts.
The hddtemp
supports host
and port
which needs to be adjusted if you want to monitor multiple instances.
yeah, I understand that, but what I don't understand is the syntax in yaml to provide host and port so that it will monitor multiple instances. Can you provide an example ?
It is a YAML list (as shown in the current documentation), extend the list with as many instances as you like.
For more information on YAML see here: https://www.home-assistant.io/docs/configuration/yaml/, and otherwise Google can provide you with tons of resources on how YAML works :)
For example:
# Example configuration.yaml entry
sensor:
- platform: hddtemp
disks:
- /dev/sda1
- platform: hddtemp
disks:
- /dev/sda2
- platform: hddtemp
disks:
- /dev/sda2
- platform: hddtemp
name: "something else"
disks:
- /dev/sda3
- platform: hddtemp
host: external-machine.local
port: 1337
Thanks very much I'll give that a try.
No problem 👍
../Frenck
So I gave it a try and still no dice. I can get temps from all remove systems and the local system docker contaieners by using nc to test them as per the hddtemp documentation, but HA is not bringing the data in.
here is a snip from the yaml in HA condifuration.yaml.
sensor:
I will start to look more closely at the hddtem configs as I see that some of the output is not perhaps quite inline with the expectations of the HA integrations expectations, as follows:
root@lenovo:~# nc 192.168.1.103 7634
|/dev/sda|Samsung SSD 840 EVO 250G B �@|22|C||/dev/sda1|Samsung SSD 840 EVO 250G B �@|22|C||/dev/sdb|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdb1|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdb2|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdb3|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdb4|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdb5|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdb6|Samsung SSD 850 EVO 250G B �@|17|C||/dev/sdc|ST320LT007-9ZV142|16|C||/dev/sdc1|ST320LT007-9ZV142|16|C||/dev/sdd|Hitachi HTS543232A7A384|17|C||/dev/sdd1|Hitachi HTS543232A7A384|17|C||/dev/sde|Samsung SSD 840 EVO 250G B �|17|C||/dev/sde1|Samsung SSD 840 EVO 250G B �|17|C||/dev/sdf|Generic STORAGE DEVICE|NA|||/dev/sdg|Generic STORAGE DEVICE|NA|||/dev/sdh|Generic STORAGE DEVICE|NA|||/dev/sdi|Generic STORAGE DEVICE|NA||
which seems to be a bug in hddtemp, as when I run hddtemp --degub it has teh same error in the returned data for teh device name, however the same data straight from smartctl looks mich better:
hddtemp
:/# hddtemp --debug /dev/sda
================= hddtemp 0.3-beta15 ================== Model: Samsung SSD 840 EVO 250G B �@
smartctl -a
Device Model: Samsung SSD 840 EVO 250GB
That is no longer a documentation suggestion. If you need support, please use our Discord chat or Community Forums; otherwise, if you suspect a bug, please raise an issue in our issue trackers.
When in doubt about where to go, please see:
https://www.home-assistant.io/help
Thanks! 👍
../Frenck
To be clear, I'm still not convinced that this works for multiple hosts.
It should, as per documentation. If that is not the case, please report a bug as mentioned above.
Thanks 👍
../Frenck
Ok, so i have resolved the problems with hddtemp ( started using a container by modem7 instead of the most popular one on docker hub. the modem7 image is built from a newer version of hddtemp which has fixes for the issues I was experiencing, and now HA picks up the data correctly from all hosts. I am happy that the integration works as described.
Thank you for your help with the yaml configuration. I think that perhaps to help other yaml newbies such as myself, it might be helpful to put an example like the one you provided above in the documentation for this integration.
All the best, Greg.
Feedback
Please provide a configuration example that shows configuring hddtemp to monitor temps from several remote hosts.
https://www.home-assistant.io/integrations/hddtemp
URL
https://www.home-assistant.io/integrations/hddtemp
Version
No response
Additional information
No response