62
170
623
高级会员
使用道具 举报
20
497
3302
论坛元老
command: "ssh -o UserKnownHostsFile=/config/ssh/known_hosts -o StrictHostKeyChecking=no -o PubkeyAcceptedKeyTypes=+ssh-rsa -i /config/ssh/id_rsa_wky [email protected] 'cat /sys/class/hwmon/hwmon0/temp1_input'"
cjnt007 发表于 2024-5-3 09:22 提供我的获取玩客玩温度的配置给你参考下:
cookiesliy 发表于 2024-5-3 11:26 能发下yaml完整的代码吗?
cjnt007 发表于 2024-5-3 12:49 给你提供的command就是最关键的部分,其他配置项基本一致。楼主要注意的是HA的ssh加载项的运行环境与comm ...
command_line: sensor: name: Openwrt Temperature unique_id: Openwrt_Temperature command: "ssh -o StrictHostKeyChecking=no -o PubkeyAcceptedKeyTypes=+ssh-rsa -i /config/id_rsa [email protected] cut -c1-2 /sys/devices/virtual/thermal/thermal_zone1/temp" unit_of_measurement: "°C" scan_interval: 100
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-2-24 15:59 , Processed in 0.596327 second(s), 31 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.