Hi Harry,
I’m managing heating with this rule on a sonoff TH10
on AM2301#Temperature>%mem2% do Power1 1 endon on AM2301#Temperature<%mem2% do Power1 0 endon
Then with an automation, I’m setting temperature on mem2 depending of the day and time.
- id: '1572792542641'
alias: Thermostat programmable Chambre Maxime
description: ''
trigger:
- platform: template
value_template: '{{now().minute==0}}'
- entity_id: input_boolean.thermostat_actif_max
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.thermostat_actif_max
state: 'on'
action:
- data:
payload_template: '{% set TempChambreM =
[''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18''],
[''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18''],
[''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18''],
[''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''21'',''21'',''18'',''18'',''18'',''18''],
[''18'',''18'',''18'',''18'',''18'',''20'',''21'',''20'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18''],
[''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''21'',''21'',''21'',''21'',''21'',''21'',''21'',''21'',''18''],
[''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''21'',''21'',''21'',''21'',''21'',''21'',''21'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'',''18'']
%}{{ TempChambreM[now().weekday()][now().hour]}}'
topic: cmnd/sonoff229/Mem2
service: mqtt.publish
Of course, I would love to have this table i card, but I don’t know how to do it.
And this is the result. I manage two sonoff TH, one for each rooms and set two different automation as one of my son is out all the week and the youngest stay at home.