So I gave this a try:
and sensors-detect … as soon as I hit the - It turns red.
So I gave this a try:
and sensors-detect … as soon as I hit the - It turns red.
But what does lsmod give you on Debian?
No Debian installed. Pure HASS OS install.
Can you boot debian (from a usb or something), check the usb boot gives you the info you seek, and if it does post the output of lsmod
. There are obviously kernel differences, which I am trying to track down for you. Also the output of uname -a
from haos and debian.
EDIT: and while you are in debian, run sensors-detect and make a note of the modules it advises you to install for monitoring.
SORRY EDIT2 - the command to look for the right place to find the info should have been
find /sys |grep temp1_input
Also if that doesn’t find anything, adjust the search term, try for example
find /sys | grep temp
I will have see if there is a LIVE USB version of DEBIAN, like there is for UBUNTU - not sure that I have ever seen one. Not seen one for ALPINE either.
I will see what I can collect from these - I just booted with a DEBIAN Live USB. I need to get SSH running on there, so that I can take screen shots from my PC.
FWIW, this returns the processor temperature on my PI4 with HAOS installed.
# Pi4 CPU Temperature
- platform: command_line
name: Processor Temperature
unit_of_measurement: "C"
command: awk '{printf("%.1f\n",$1/1e3)}' /sys/class/thermal/thermal_zone0/temp
OK – Debian 11.4 LIVE CD booted - SSH installed and you go:
root@debian:~# lsmod
Module Size Used by
rfcomm 90112 4
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 32768 6 algif_hash,algif_skcipher
bnep 28672 2
snd_hda_codec_realtek 155648 1
btusb 65536 0
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
btrtl 28672 1 btusb
snd_hda_codec_hdmi 73728 1
ledtrig_audio 16384 1 snd_hda_codec_generic
btbcm 20480 1 btusb
btintel 32768 1 btusb
snd_hda_intel 57344 3
bluetooth 745472 33 btrtl,btintel,btbcm,bnep,btusb,rfcomm
snd_intel_dspcfg 28672 1 snd_hda_intel
soundwire_intel 45056 1 snd_intel_dspcfg
soundwire_generic_allocation 16384 1 soundwire_intel
amd_freq_sensitivity 16384 0
cpufreq_ondemand 16384 1 amd_freq_sensitivity
snd_soc_core 315392 1 soundwire_intel
edac_mce_amd 32768 0
snd_compress 32768 1 snd_soc_core
soundwire_cadence 36864 1 soundwire_intel
kvm_amd 114688 0
snd_hda_codec 172032 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
ccp 106496 1 kvm_amd
snd_hda_core 110592 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
kvm 921600 1 kvm_amd
jitterentropy_rng 16384 1
snd_hwdep 16384 1 snd_hda_codec
soundwire_bus 90112 3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
drbg 40960 1
snd_pcm 139264 7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_compress,snd_soc_core,snd_hda_core
ansi_cprng 16384 0
ecdh_generic 16384 2 bluetooth
ecc 36864 1 ecdh_generic
crc16 16384 1 bluetooth
snd_timer 49152 1 snd_pcm
snd 110592 16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
irqbypass 16384 1 kvm
hp_wmi 20480 0
soundcore 16384 1 snd
sparse_keymap 16384 1 hp_wmi
rfkill 28672 6 hp_wmi,bluetooth
efi_pstore 16384 0
pcspkr 16384 0
wmi_bmof 16384 0
tpm_infineon 20480 0
fam15h_power 16384 0
sp5100_tco 20480 0
serio_raw 20480 0
k10temp 16384 0
sg 36864 0
watchdog 28672 1 sp5100_tco
tpm_tis 16384 0
evdev 28672 12
tpm_tis_core 28672 1 tpm_tis
tpm 73728 3 tpm_tis,tpm_infineon,tpm_tis_core
rng_core 16384 2 ccp,tpm
acpi_cpufreq 32768 0
msr 16384 0
parport_pc 40960 0
ppdev 24576 0
lp 20480 0
parport 69632 3 parport_pc,lp,ppdev
fuse 167936 3
configfs 57344 1
efivarfs 16384 1
ip_tables 32768 0
x_tables 53248 1 ip_tables
autofs4 53248 2
squashfs 69632 1
loop 40960 2
overlay 143360 1
isofs 49152 1
cdrom 73728 1 isofs
raid10 65536 0
raid456 180224 0
async_raid6_recov 24576 1 raid456
async_memcpy 20480 2 raid456,async_raid6_recov
async_pq 20480 2 raid456,async_raid6_recov
async_xor 20480 3 async_pq,raid456,async_raid6_recov
async_tx 20480 5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
xor 24576 1 async_xor
raid6_pq 122880 3 async_pq,raid456,async_raid6_recov
libcrc32c 16384 1 raid456
crc32c_generic 16384 0
raid1 53248 0
raid0 24576 0
multipath 20480 0
linear 20480 0
md_mod 180224 6 raid1,raid10,raid0,linear,raid456,multipath
hid_generic 16384 0
usbhid 65536 0
hid 147456 2 usbhid,hid_generic
amdgpu 6610944 0
uas 32768 0
usb_storage 81920 2 uas
gpu_sched 45056 1 amdgpu
crc32_pclmul 16384 0
crc32c_intel 24576 1
radeon 1650688 0
sd_mod 61440 2
t10_pi 16384 1 sd_mod
crc_t10dif 20480 1 t10_pi
crct10dif_generic 16384 0
crct10dif_pclmul 16384 1
crct10dif_common 16384 3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
ohci_pci 20480 0
xhci_pci 20480 0
i2c_algo_bit 16384 2 amdgpu,radeon
ghash_clmulni_intel 16384 0
ttm 114688 2 amdgpu,radeon
r8169 102400 0
ohci_hcd 61440 1 ohci_pci
ehci_pci 20480 0
xhci_hcd 303104 1 xhci_pci
drm_kms_helper 274432 2 amdgpu,radeon
psmouse 184320 0
ahci 40960 0
cec 61440 1 drm_kms_helper
realtek 24576 1
aesni_intel 368640 4
libahci 45056 1 ahci
ehci_hcd 98304 1 ehci_pci
libata 290816 2 libahci,ahci
drm 618496 5 gpu_sched,drm_kms_helper,amdgpu,radeon,ttm
libaes 16384 2 bluetooth,aesni_intel
crypto_simd 16384 1 aesni_intel
scsi_mod 262144 5 sd_mod,usb_storage,uas,libata,sg
usbcore 323584 10 xhci_hcd,ohci_hcd,ehci_pci,usbhid,usb_storage,ehci_hcd,btusb,xhci_pci,ohci_pci,uas
cryptd 24576 3 crypto_simd,ghash_clmulni_intel
glue_helper 16384 1 aesni_intel
mdio_devres 16384 1 r8169
libphy 151552 3 r8169,mdio_devres,realtek
i2c_piix4 28672 0
usb_common 16384 4 xhci_hcd,ohci_hcd,usbcore,ehci_hcd
wmi 36864 2 hp_wmi,wmi_bmof
button 24576 0
That is from the lsmod
command on this HP t620 ThinClient.
Here is the uname -a:
root@debian:~# uname -a
Linux debian 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux
Here is the find /sys |grep temp1_input:
root@debian:~# find /sys |grep temp1_input
/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_input
and the find /sys | grep temp:
root@debian:~# find /sys | grep temp
/sys/kernel/tracing/events/thermal/thermal_temperature
/sys/kernel/tracing/events/thermal/thermal_temperature/format
/sys/kernel/tracing/events/thermal/thermal_temperature/trigger
/sys/kernel/tracing/events/thermal/thermal_temperature/filter
/sys/kernel/tracing/events/thermal/thermal_temperature/id
/sys/kernel/tracing/events/thermal/thermal_temperature/enable
/sys/kernel/debug/kvm/halt_attempted_poll
/sys/kernel/debug/tracing/events/thermal/thermal_temperature
/sys/kernel/debug/tracing/events/thermal/thermal_temperature/format
/sys/kernel/debug/tracing/events/thermal/thermal_temperature/trigger
/sys/kernel/debug/tracing/events/thermal/thermal_temperature/filter
/sys/kernel/debug/tracing/events/thermal/thermal_temperature/id
/sys/kernel/debug/tracing/events/thermal/thermal_temperature/enable
/sys/devices/pnp0/00:08/temp_deactivated
/sys/devices/pnp0/00:08/tpm/tpm0/temp_deactivated
/sys/devices/platform/hp-wmi/hddtemp
/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_crit
/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_crit_hyst
/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_input
/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_max
/sys/bus/pci/drivers/k10temp
/sys/bus/pci/drivers/k10temp/uevent
/sys/bus/pci/drivers/k10temp/0000:00:18.3
/sys/bus/pci/drivers/k10temp/bind
/sys/bus/pci/drivers/k10temp/new_id
/sys/bus/pci/drivers/k10temp/remove_id
/sys/bus/pci/drivers/k10temp/unbind
/sys/bus/pci/drivers/k10temp/module
/sys/firmware/efi/esrt/entries/entry0/last_attempt_version
/sys/firmware/efi/esrt/entries/entry0/last_attempt_status
/sys/module/k10temp
/sys/module/k10temp/initsize
/sys/module/k10temp/uevent
/sys/module/k10temp/notes
/sys/module/k10temp/notes/.note.Linux
/sys/module/k10temp/notes/.note.gnu.build-id
/sys/module/k10temp/taint
/sys/module/k10temp/parameters
/sys/module/k10temp/parameters/force
/sys/module/k10temp/holders
/sys/module/k10temp/refcnt
/sys/module/k10temp/coresize
/sys/module/k10temp/drivers
/sys/module/k10temp/drivers/pci:k10temp
/sys/module/k10temp/initstate
/sys/module/k10temp/sections
/sys/module/k10temp/sections/.orc_unwind
/sys/module/k10temp/sections/__param
/sys/module/k10temp/sections/.note.Linux
/sys/module/k10temp/sections/.strtab
/sys/module/k10temp/sections/__mcount_loc
/sys/module/k10temp/sections/.exit.text
/sys/module/k10temp/sections/.bss
/sys/module/k10temp/sections/.orc_unwind_ip
/sys/module/k10temp/sections/.gnu.linkonce.this_module
/sys/module/k10temp/sections/.symtab
/sys/module/k10temp/sections/.rodata
/sys/module/k10temp/sections/.init.text
/sys/module/k10temp/sections/.note.gnu.build-id
/sys/module/k10temp/sections/.text
/sys/module/k10temp/sections/.data
/sys/module/k10temp/sections/__bug_table
/sys/module/k10temp/sections/.rodata.str1.1
/sys/module/k10temp/sections/.parainstructions
/sys/module/k10temp/sections/.text.unlikely
/sys/module/k10temp/sections/.rodata.str1.8
also here is sensors:
root@debian:~# sensors
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +48.2°C (high = +70.0°C)
(crit = +100.0°C, hyst = +99.0°C)
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: N/A (crit = 15.00 W)
k10temp-pci-00c3
You can in theory make a sensors.conf file for lm-sensors. You would add that k10temp sensor to the file I think… It would need to be saved in one of the shared folders. (Config or shared etc)
I believe you would then be able to run sensors from HAOS without needing to run sensors-detect. Although I didn’t find an example of the conf file or have a machine to test that idea out.
The lm-sensors github had that info.
Then do
sensors -c path/to/sensors.conf
I am not following you. I know HOW to get the CPU Temp if I am running under Debian with HA Supervised. This has never been an issue. I add the following to my sensors.yaml file and ouila - I get it.
# Lines added for Command Line Testing (CPU Temp)
- platform: command_line
name: CPU Temperature
command: "cat /sys/class/hwmon/hwmon1/temp1_input"
# If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
The issue is that when running HASS OS (which installs its own LINUX (Appears to be a ‘stripped version’ of ALPINE LINUX - this does not work.
my previous post was referring to HAOS, not debian.
The next messages are all pulling the same info after booting back into HASS OS:
OS Version: Home Assistant OS 8.5
Home Assistant Core: 2022.8.6
Home Assistant URL: http://homeassistant.local:8123
Observer URL: http://homeassistant.local:4357
➜ ~ whoami
root
➜ ~ lsmod
Module Size Used by Not tainted
xfrm_user 45056 1
cfg80211 958464 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec_hdmi 69632 1
snd_hda_intel 49152 0
snd_intel_dspcfg 24576 1 snd_hda_intel
snd_hda_codec 147456 4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel
btusb 49152 0
btrtl 24576 1 btusb
btbcm 20480 1 btusb
btintel 40960 1 btusb
snd_hwdep 16384 1 snd_hda_codec
snd_hda_core 106496 5 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_pcm 126976 5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
Here is the next:
➜ ~ uname -a
Linux a0d7b954-ssh 5.15.60 #1 SMP Tue Aug 16 11:51:03 UTC 2022 x86_64 Linux
What about snmp?
I use that one to get cpu temp, as well as some other values from my NAS (stand alone)
And now that i think of it, i should do the same for my VMware hosting HassOS