Untitled

 avatar
unknown
plain_text
4 years ago
4.5 kB
27
Indexable

- id: 47e2de4f45a244ab994d3d80d4de63d4
  alias: Set quiet level selector
  trigger:
  - platform: mqtt
    topic: panasonic_heat_pump/main/Quiet_Mode_Level
  action:
  - service: input_select.select_option
    data_template:
      entity_id: input_select.heishamon_quietmode
      option: "{%- if trigger.payload == \"0\" -%}\n  Off\n{%- else -%}\n  {{ trigger.payload\
        \ }}\n{%- endif -%}"
  mode: single
- id: 1399b99d6478486684ca3f436dea5179
  alias: Set quiet level
  trigger:
  - platform: state
    entity_id: input_select.heishamon_quietmode
  action:
  - delay: '5'
  - service: mqtt.publish
    data_template:
      topic: panasonic_heat_pump/commands/SetQuietMode
      retain: false
      payload_template: "{%- if states('input_select.heishamon_quietmode') == \"Off\"\
        \ -%}\n  0\n{%- else -%}\n  {{ states('input_select.heishamon_quietmode')\
        \ }}\n{%- endif -%}"
  mode: single
- id: 32bc074074fd4bd7847b9e73ea334ba9
  alias: Set powerful level selector
  trigger:
  - platform: mqtt
    topic: panasonic_heat_pump/main/Powerful_Mode_Time
  action:
  - service: input_select.select_option
    data_template:
      entity_id: input_select.heishamon_powermode
      option: "{%- if trigger.payload == \"0\" -%}\n  Off\n{%- else -%}\n  {{ (trigger.payload\
        \ | int) * 30 }} min\n{%- endif -%}"
  mode: single
- id: 43983247820546c0a173cdef267d766d
  alias: Set powerful level
  trigger:
  - platform: state
    entity_id: input_select.heishamon_powermode
  action:
  - delay: '5'
  - service: mqtt.publish
    data_template:
      topic: panasonic_heat_pump/commands/SetPowerfulMode
      retain: false
      payload_template: "{%- if states('input_select.heishamon_powermode') == \"Off\"\
        \ -%}\n  0\n{%- else -%}\n  {{ \"%.0f\" % ((states('input_select.heishamon_powermode')\
        \ | replace(\"min\", \"\") | int) / 30) }}\n{%- endif -%}"
  mode: single
- id: 3958e32c80164e95807bfeaa523989a6
  alias: Set heatmode selector
  trigger:
  - platform: mqtt
    topic: panasonic_heat_pump/main/Operating_Mode_State
  action:
  - service: input_select.select_option
    data_template:
      entity_id: input_select.heishamon_heatmode
      option: "{%- if trigger.payload == \"0\" -%}\n  Heat\n{%- elif trigger.payload\
        \ == \"3\" -%}\n  DHW\n{%- elif trigger.payload == \"4\" -%}\n  Heat+DHW\n\
        {%- endif -%}"
  mode: single
- id: 593e657690aa46e2800215530dbbbde6
  alias: Set heatmode
  trigger:
  - platform: state
    entity_id: input_select.heishamon_heatmode
  action:
  - delay: '5'
  - service: mqtt.publish
    data_template:
      topic: panasonic_heat_pump/commands/SetOperationMode
      retain: false
      payload_template: "{%- if states('input_select.heishamon_heatmode') == \"Heat\"\
        \ -%}\n  0\n{%- elif states('input_select.heishamon_heatmode') == \"DHW\"\
        \ -%}\n  3\n{%- elif states('input_select.heishamon_heatmode') == \"Heat+DHW\"\
        \ -%}\n  4\n{%- endif -%}"
  mode: single
- id: 8a06cbc7658a4f4fb3feba635e613373
  alias: Set heatshift selector
  trigger:
  - platform: mqtt
    topic: panasonic_heat_pump/main/Z1_Heat_Request_Temp
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.heishamon_heatshift
      value: '{{ "%.1f" % (trigger.payload | int) }}'
  mode: single
- id: 948aadd968084dbaa1aafd0c6555d27c
  alias: Set heatshift
  trigger:
  - platform: state
    entity_id: input_number.heishamon_heatshift
  action:
  - delay: '5'
  - service: mqtt.publish
    data_template:
      topic: panasonic_heat_pump/commands/SetZ1HeatRequestTemperature
      retain: false
      payload_template: '{{ "%.0f" % (states(''input_number.heishamon_heatshift'')
        | int) }}'
  mode: single
- id: 43a0f150078f4b7eb3d197ff0cd9403a
  alias: Set tank target temperature selector
  trigger:
  - platform: mqtt
    topic: panasonic_heat_pump/main/DHW_Target_Temp
  condition: []
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.heishamon_tank_temp
      value: '{{ "%.1f" % (trigger.payload | int) }}'
  mode: single
- id: 0659a8eb3ac74d55b1bc5d1aff8ef9c3
  alias: Set tank target temperature
  trigger:
  - platform: state
    entity_id: input_number.heishamon_tank_temp
  condition: []
  action:
  - delay: '5'
  - service: mqtt.publish
    data_template:
      topic: panasonic_heat_pump/commands/SetDHWTemp
      retain: false
      payload_template: '{{ "%.0f" % (states(''input_number.heishamon_tank_temp'')
        | int) }}'
  mode: single
Editor is loading...