hey guys, I’m pushing it a bit further with the trigger.entity_id. I’m trying to translate this to Node Red:
trigger:
- platform: state
entity_id: sensor.aemet_current_temp
condition:
condition: and
conditions:
- condition: template
value_template: "{{ trigger.to_state.state|float < states.climate.calefaccion.attributes.current_temperature|float + 1 }}"
- condition: template
value_template: "{{ states.weather.aemet.attributes.forecast[0].temperature|float > 23 }}"
- condition: time
after: '20:01:00'
before: '23:59:59'
So far I’ve got the following, but I’ struggling to get the “{{ trigger.to_state.state|float < states.climate.calefaccion.attributes.current_temperature|float + 1 }}” in
[{"id":"19a3656f.745ccb","type":"trigger-state","z":"ea121e86.45601","name":"trigger","server":"9405c3fe.d0a6c","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"sensor.aemet_current_temp","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"id":"ohqevf59cjf","targetType":"entity_id","targetValue":"weather.aemet","propertyType":"property","propertyValue":"attributes.forecast.0.temperature","comparatorType":">","comparatorValueDatatype":"num","comparatorValue":"23"}],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"num","x":180,"y":240,"wires":[["9bafb8c5.423568"],[]]},{"id":"9bafb8c5.423568","type":"time-range-switch","z":"ea121e86.45601","name":"time condition","lat":"","lon":"","startTime":"20:01:00","endTime":"23:59:59","startOffset":0,"endOffset":0,"x":360,"y":240,"wires":[[],[]]},{"id":"9405c3fe.d0a6c","type":"server","z":"","name":"Home Assistant","addon":true}]
thanks in advanced