I installed a Openhabian on a Raspberry and try to get the temperature of the Raspi.
The Exec binding and Regex are installed but the solved demomo doesesnt work!
String Raspi (All) {channel="exec:command:apc:output"}
Number Raspi_CPU "Temperature CPU [%.1f °C]" <temperature>
raspi.rules
rule "CPU Temp"
when
Item Raspi changed
// Item Raspi received update (old version)
then
var String cpupdate = Raspi.state.toString.trim
var Number cpuTemp = new DecimalType(cpupdate)
sendCommand(Raspi_CPU, cpuTemp/1000)
end
2018-11-26 11:39:14.820 [.ItemChannelLinkAddedEvent] - Link ‘Raspi-exec:command:apc:output’ has been added.
If I enter in the console
cat /sys/class/thermal/thermal_zone0/temp
I’ve got 44236 and this is fine
Just have a question for curiosity: do you also have such a high CPU temperature?
Its constantly above 60 celsius for me and the raspi case also very hot.