- Схема: MAX7219-V1.0-D4MG
Berry Script – для вывода информации.
def led8x8(cmd, idx, payload, payload_json)
var temp = int(payload)
if temp < -9
tasmota.cmd('displaytext '..(temp))
elif (temp < 0) && (temp > -10)
tasmota.cmd('displaytext '..(temp)..'^')
elif temp == 0
tasmota.cmd('displaytext -'..(temp)..'^')
elif (temp > 0) && (temp < 10)
tasmota.cmd('displaytext +'..(temp)..'^')
elif temp > 9
tasmota.cmd('displaytext '..(temp)..'^')
end
end
tasmota.add_cmd('led', led8x8)
Rules
rule ON System#Boot DO RuleTimer1 10 ENDON
on DS18B20#Temperature do var2 %value% ENDON
ON Rules#Timer=1 DO backlog led %var2%; RuleTimer1 10 ENDON