- id: '1565867288685'
alias: WLANThermo set pitmaster temp
trigger:
- entity_id: input_number.wlanthermo_mini_pitmaster_temp
platform: state
condition: []
action:
- service: mqtt.publish
data_template:
topic: WLanThermo/MINI/set/pitmaster
retain: true
payload: '{{ ''[{"id":0,"channel":''+states(''input_select.wlanthermo_mini_pitmaster_channel'')+'',"pid":1,"value":0,"set":''+states(''input_number.wlanthermo_mini_pitmaster_temp'')+'',"typ":''+states(''input_select.wlanthermo_mini_pitmaster_mode'')
| replace(''Aus'',''off'') | replace(''Automatisch'',''auto'')+''}]''}}'
- id: '1565867288686'
alias: WLANThermo set pitmaster channel
trigger:
- entity_id: input_select.wlanthermo_mini_pitmaster_channel
platform: state
condition: []
action:
- service: mqtt.publish
data_template:
topic: WLanThermo/MINI/set/pitmaster
retain: true
payload: '{{ ''[{"id":0,"channel":''+states(''input_select.wlanthermo_mini_pitmaster_channel'')+'',"pid":1,"value":0,"set":''+states(''input_number.wlanthermo_mini_pitmaster_temp'')+'',"typ":''+states(''input_select.wlanthermo_mini_pitmaster_mode'')
| replace(''Aus'',''off'') | replace(''Automatisch'',''auto'')+''}]''}}'
- id: '1565867288687'
alias: WLANThermo set pitmaster mode
trigger:
- entity_id: input_select.wlanthermo_mini_pitmaster_mode
platform: state
condition: []
action:
- service: mqtt.publish
data_template:
topic: WLanThermo/MINI/set/pitmaster
retain: true
payload: '{{ ''[{"id":0,"channel":''+states(''input_select.wlanthermo_mini_pitmaster_channel'')+'',"pid":1,"value":0,"set":''+states(''input_number.wlanthermo_mini_pitmaster_temp'')+'',"typ":''+states(''input_select.wlanthermo_mini_pitmaster_mode'')
| replace(''Aus'',''off'') | replace(''Automatisch'',''auto'')+''}]''}}'