86 lines
3.4 KiB
YAML
86 lines
3.4 KiB
YAML
# sensor:
|
|
# - platform: template
|
|
# sensors:
|
|
# dishwasher_remaining:
|
|
# friendly_name: "Dishwasher remaining"
|
|
# value_template: >
|
|
# {% if states('sensor.dishwasher_operation_state') == 'Inactive' %} -
|
|
# {% elif states('sensor.dishwasher_operation_state') == 'Finished' %} -
|
|
# {% elif states('sensor.dishwasher_remaining_program_time') == 'unavailable' %} -
|
|
# {% elif (as_timestamp(states('sensor.dishwasher_remaining_program_time')) - as_timestamp(now())) < 61 %} < 1 min
|
|
# {% else %}
|
|
# {{ (((as_timestamp(states('sensor.dishwasher_remaining_program_time')) - as_timestamp(now())) / 60) | round(0)) | string + " min" }}
|
|
# {% endif %}
|
|
# dishwasher_progress:
|
|
# friendly_name: "Dishwasher progress"
|
|
# value_template: >
|
|
# {% if states('sensor.dishwasher_operation_state') == 'Inactive' %} -
|
|
# {% elif states('sensor.dishwasher_operation_state') == 'Finished' %} -
|
|
# {% elif states('sensor.dishwasher_program_progress') == 'unavailable' %} -
|
|
# {% else %}
|
|
# {{ states('sensor.dishwasher_program_progress') + "%" }}
|
|
# {% endif %}
|
|
|
|
# mqtt:
|
|
# sensor:
|
|
# - name: hc_dishwasher_state
|
|
# unique_id: hc_dishwasher_state
|
|
# state_topic: "homeconnect/dishwasher/state"
|
|
# value_template: "{{ value_json.state }}"
|
|
# json_attributes_topic: "homeconnect/dishwasher/state"
|
|
# - name: hc_dishwasher_remaining
|
|
# unique_id: hc_dishwasher_remaining
|
|
# state_topic: "homeconnect/dishwasher/state"
|
|
# value_template: "{{ value_json.remaining }}"
|
|
# json_attributes_topic: "homeconnect/dishwasher/state"
|
|
# binary_sensor:
|
|
# - state_topic: "homeconnect/dishwasher/state"
|
|
# name: hc_dishwasher_door
|
|
# unique_id: hc_dishwasher_door
|
|
# device_class: opening
|
|
# payload_on: "Open"
|
|
# payload_off: "Closed"
|
|
# value_template: "{{ value_json.door }}"
|
|
# json_attributes_topic: "homeconnect/dishwasher/state"
|
|
# - state_topic: "homeconnect/dishwasher/state"
|
|
# name: hc_dishwasher_power
|
|
# unique_id: hc_dishwasher_power
|
|
# payload_on: true
|
|
# payload_off: false
|
|
# value_template: "{{ value_json.power }}"
|
|
# json_attributes_topic: "homeconnect/dishwasher/state"
|
|
template:
|
|
binary_sensor:
|
|
- name: bosch_dishwasher_running
|
|
unique_id: bosch_dishwasher_running
|
|
state: "{{ is_state('sensor.bosch_dishwasher_operation_state', 'Run') }}"
|
|
|
|
counter:
|
|
bosch_dishwasher_door_open_count:
|
|
name: bosch_dishwasher_door_open_count
|
|
|
|
input_select:
|
|
bosch_dishwasher_state_extended:
|
|
name: bosch_dishwasher_state_extended
|
|
options:
|
|
- 'Empty'
|
|
- 'Washing'
|
|
- 'Washed'
|
|
- 'Collecting Dishes'
|
|
- 'Ready to wash'
|
|
|
|
homeassistant:
|
|
customize:
|
|
sensor.bosch_dishwasher_state:
|
|
friendly_name: Посудомойка Статус
|
|
binary_sensor.bosch_dishwasher_door:
|
|
friendly_name: Посудомойка Дверца
|
|
binary_sensor.bosch_dishwasher_remaining:
|
|
friendly_name: Посудомойка До конца программы
|
|
sensor.bosch_dishwasher_running:
|
|
friendly_name: Посудомоечная машина
|
|
binary_sensor.bosch_dishwasher_power:
|
|
friendly_name: Посудомойка Питание
|
|
|
|
|
|
# homeconnect/dishwasher/state {"state": "Ready", "door": "Closed", "remaining": "0:15", "power": false, "lowwaterpressure": false, "aquastop": false, "error": false, "remainingseconds": 900} |