# homeassistant/device/01KC1HRV0RGW5HGPEY7WDZF2KG/config # { # "dev": { # "manufacturer": "Maytag Inc.", # "model": "Jetclean Plus", # "model_id": "MDB6769PAS1", # "name": "Dishwasher", # "identifiers": [ # "01KC1HRV0RGW5HGPEY7WDZF2KG" # ] # }, # "o": { # "name": "MQTT subentry export" # }, # "cmps": { # "0827597b25ca4e2cbf565cc5eed0ab03": { # "command_template": "{{ value }}", # "command_topic": "cleverdevices/Dishwasher/Start Power", # "device_class": "power", # "entity_category": "config", # "max": 1000.0, # "min": 0.0, # "mode": "auto", # "name": "Start Power", # "payload_reset": "None", # "platform": "number", # "retain": true, # "state_topic": "cleverdevices/Dishwasher/Start Power", # "step": 0.099, # "unit_of_measurement": "W", # "value_template": "{{ value }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_0827597b25ca4e2cbf565cc5eed0ab03", # "qos": 0.0 # }, # "188b667b6b7241a28709d2fa854fa8ba": { # "device_class": "energy", # "entity_category": "diagnostic", # "name": "kWh", # "platform": "sensor", # "state_class": "total_increasing", # "state_topic": "esphome/power-monitor/Dishwasher_kwh", # "unit_of_measurement": "kWh", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_188b667b6b7241a28709d2fa854fa8ba", # "qos": 0.0 # }, # "2a53996ebac24fa89eddb0854b5ba6fd": { # "device_class": "enum", # "entity_category": "diagnostic", # "name": null, # "options": [ # "Idle", # "Running", # "Pending", # "Problem" # ], # "platform": "sensor", # "state_topic": "cleverdevices/Dishwasher", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_2a53996ebac24fa89eddb0854b5ba6fd", # "qos": 0.0 # }, # "2be0eb61a8f2411b8acae7b3b61ae358": { # "command_template": "{{ value }}", # "command_topic": "cleverdevices/Dishwasher/End Power", # "device_class": "power", # "entity_category": "config", # "max": 1000.0, # "min": 0.0, # "mode": "auto", # "name": "End Power", # "payload_reset": "None", # "platform": "number", # "retain": true, # "state_topic": "cleverdevices/Dishwasher/End Power", # "step": 0.1, # "unit_of_measurement": "W", # "value_template": "{{ value }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_2be0eb61a8f2411b8acae7b3b61ae358", # "qos": 0.0 # }, # "38aff7715f8b4b7aa1f442024c18be73": { # "command_template": "{{ value }}", # "command_topic": "cleverdevices/Dishwasher/delay_on", # "entity_category": "config", # "max": 7200.0, # "min": 0.0, # "mode": "auto", # "name": "Delay On", # "payload_reset": "None", # "platform": "number", # "retain": true, # "state_topic": "cleverdevices/Dishwasher/delay_on", # "step": 1.0, # "unit_of_measurement": "s", # "value_template": "{{ value }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_38aff7715f8b4b7aa1f442024c18be73", # "qos": 0.0 # }, # "3d0c5e8db4de49d49a751dd8539c91e3": { # "device_class": "opening", # "entity_category": "diagnostic", # "name": "Door", # "payload_off": "True", # "payload_on": "False", # "platform": "binary_sensor", # "state_topic": "zigbee2mqtt/Dishwasher Door", # "value_template": "{{ value_json.contact }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_3d0c5e8db4de49d49a751dd8539c91e3", # "qos": 0.0 # }, # "6c109f44bbae4175a14d5722c7fd007c": { # "command_template": "{{ value }}", # "command_topic": "cleverdevices/Dishwasher/Counter", # "entity_category": "diagnostic", # "max": 100.0, # "min": 0.0, # "mode": "box", # "name": "Run Counter", # "payload_reset": "None", # "platform": "number", # "retain": true, # "state_topic": "cleverdevices/Dishwasher/Counter", # "step": 1.0, # "value_template": "{{ value }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_6c109f44bbae4175a14d5722c7fd007c", # "qos": 0.0 # }, # "78821c01898147ed99f74bbe068b13f8": { # "device_class": "running", # "name": null, # "payload_off": "OFF", # "payload_on": "ON", # "platform": "binary_sensor", # "state_topic": "cleverdevices/Dishwasher", # "value_template": "{{ 'ON' if value == 'Running' else 'OFF' }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_78821c01898147ed99f74bbe068b13f8", # "qos": 0.0 # }, # "80a2bcb04f824754a3af3b84e5e35f5f": { # "device_class": "power", # "entity_category": "diagnostic", # "name": "Watts", # "platform": "sensor", # "state_class": "measurement", # "state_topic": "esphome/power-monitor/Dishwasher_w", # "suggested_display_precision": 1, # "unit_of_measurement": "W", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_80a2bcb04f824754a3af3b84e5e35f5f", # "qos": 0.0 # }, # "82efefd86f3245f6b0e0e19829971f3b": { # "command_template": "{{ value }}", # "command_topic": "cleverdevices/Dishwasher/delay_off", # "entity_category": "config", # "max": 7200.0, # "min": 0.0, # "mode": "auto", # "name": "Delay Off", # "payload_reset": "None", # "platform": "number", # "retain": true, # "state_topic": "cleverdevices/Dishwasher/delay_off", # "step": 1.0, # "unit_of_measurement": "s", # "value_template": "{{ value }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_82efefd86f3245f6b0e0e19829971f3b", # "qos": 0.0 # }, # "e78b046ca55a40849ac4646ae136574e": { # "command_template": "{{ value }}", # "command_topic": "cleverdevices/Dishwasher/delay_problem", # "entity_category": "config", # "max": 14399.999, # "min": 0.0, # "mode": "auto", # "name": "Delay Problem", # "payload_reset": "None", # "platform": "number", # "retain": true, # "state_topic": "cleverdevices/Dishwasher/delay_problem", # "step": 1.0, # "unit_of_measurement": "s", # "value_template": "{{ value }}", # "unique_id": "01KC1HRV0RGW5HGPEY7WDZF2KG_e78b046ca55a40849ac4646ae136574e", # "qos": 0.0 # } # } # } # mqtt: # - number: # command_template: '{{ value }}' # command_topic: cleverdevices/Dishwasher/Start Power # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: power # entity_category: config # max: 1000.0 # min: 0.0 # mode: auto # name: Start Power # payload_reset: None # qos: 0.0 # retain: true # state_topic: cleverdevices/Dishwasher/Start Power # step: 0.099 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_0827597b25ca4e2cbf565cc5eed0ab03 # unit_of_measurement: W # value_template: '{{ value }}' # - sensor: # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: energy # entity_category: diagnostic # name: kWh # qos: 0.0 # state_class: total_increasing # state_topic: esphome/power-monitor/Dishwasher_kwh # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_188b667b6b7241a28709d2fa854fa8ba # unit_of_measurement: kWh # - sensor: # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: enum # entity_category: diagnostic # name: null # options: # - Idle # - Running # - Pending # - Problem # qos: 0.0 # state_topic: cleverdevices/Dishwasher # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_2a53996ebac24fa89eddb0854b5ba6fd # - number: # command_template: '{{ value }}' # command_topic: cleverdevices/Dishwasher/End Power # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: power # entity_category: config # max: 1000.0 # min: 0.0 # mode: auto # name: End Power # payload_reset: None # qos: 0.0 # retain: true # state_topic: cleverdevices/Dishwasher/End Power # step: 0.1 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_2be0eb61a8f2411b8acae7b3b61ae358 # unit_of_measurement: W # value_template: '{{ value }}' # - number: # command_template: '{{ value }}' # command_topic: cleverdevices/Dishwasher/delay_on # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # entity_category: config # max: 7200.0 # min: 0.0 # mode: auto # name: Delay On # payload_reset: None # qos: 0.0 # retain: true # state_topic: cleverdevices/Dishwasher/delay_on # step: 1.0 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_38aff7715f8b4b7aa1f442024c18be73 # unit_of_measurement: s # value_template: '{{ value }}' # - binary_sensor: # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: opening # entity_category: diagnostic # name: Door # payload_off: 'True' # payload_on: 'False' # qos: 0.0 # state_topic: zigbee2mqtt/Dishwasher Door # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_3d0c5e8db4de49d49a751dd8539c91e3 # value_template: '{{ value_json.contact }}' # - number: # command_template: '{{ value }}' # command_topic: cleverdevices/Dishwasher/Counter # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # entity_category: diagnostic # max: 100.0 # min: 0.0 # mode: box # name: Run Counter # payload_reset: None # qos: 0.0 # retain: true # state_topic: cleverdevices/Dishwasher/Counter # step: 1.0 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_6c109f44bbae4175a14d5722c7fd007c # value_template: '{{ value }}' # - binary_sensor: # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: running # name: null # payload_off: 'OFF' # payload_on: 'ON' # qos: 0.0 # state_topic: cleverdevices/Dishwasher # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_78821c01898147ed99f74bbe068b13f8 # value_template: '{{ ''ON'' if value == ''Running'' else ''OFF'' }}' # - sensor: # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # device_class: power # entity_category: diagnostic # name: Watts # qos: 0.0 # state_class: measurement # state_topic: esphome/power-monitor/Dishwasher_w # suggested_display_precision: 1 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_80a2bcb04f824754a3af3b84e5e35f5f # unit_of_measurement: W # - number: # command_template: '{{ value }}' # command_topic: cleverdevices/Dishwasher/delay_off # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # entity_category: config # max: 7200.0 # min: 0.0 # mode: auto # name: Delay Off # payload_reset: None # qos: 0.0 # retain: true # state_topic: cleverdevices/Dishwasher/delay_off # step: 1.0 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_82efefd86f3245f6b0e0e19829971f3b # unit_of_measurement: s # value_template: '{{ value }}' # - number: # command_template: '{{ value }}' # command_topic: cleverdevices/Dishwasher/delay_problem # device: # identifiers: # - 01KC1HRV0RGW5HGPEY7WDZF2KG # manufacturer: Maytag Inc. # model: Jetclean Plus # model_id: MDB6769PAS1 # name: Dishwasher # entity_category: config # max: 14399.999 # min: 0.0 # mode: auto # name: Delay Problem # payload_reset: None # qos: 0.0 # retain: true # state_topic: cleverdevices/Dishwasher/delay_problem # step: 1.0 # unique_id: 01KC1HRV0RGW5HGPEY7WDZF2KG_e78b046ca55a40849ac4646ae136574e # unit_of_measurement: s # value_template: '{{ value }}' template: - binary_sensor: - name: Washing Machine unique_id: templatebinarysensor.washing_machine delay_on: "{{states('input_number.washing_machine_delay_on') | float(default=0)}}" delay_off: "{{states('input_number.washing_machine_delay_off') | float(default=0)}}" icon: mdi:washing-machine availability: "{{ states('sensor.pm_laundry_plug_w') not in ['unknown', 'unavailable'] }}" attributes: model_number: "WF45R6100AW/US" serial_number: "01FY57AM802740X" power: "{{ states('sensor.pm_laundry_plug_w') | float(default=0)}}" target: "{{ states('input_number.washing_machine_on') | float(default=0)}}" state: "{{ states('sensor.pm_laundry_plug_w')|float(default=0) >= states('input_number.washing_machine_on')|float(default=0) }}" - sensor: - name: Washing Machine unique_id: templatesensor_washing_machine state: > {% if is_state('binary_sensor.washing_machine','on') %} running {% elif is_state('binary_sensor.washing_machine','off') and is_state('input_boolean.swap_laundry','on') %} pending {% else %} idle {% endif %} icon: > {% if is_state('sensor.washing_machine','idle') %} mdi:washing-machine-off {% elif is_state('sensor.washing_machine','pending') %} mdi:washing-machine-alert {% else %} mdi:washing-machine {% endif %} attributes: model_number: "WF45R6100AW/US" serial_number: "01FY57AM802740X" power: "{{ states('sensor.pm_laundry_plug_w') | float(default=0)}}" target: "{{ states('input_number.washing_machine_on') | float(default=0)}}" input_boolean: swap_laundry: name: Swap Laundry icon: mdi:tshirt-crew input_number: washing_machine_on: # was 5 name: "Washing Machine On" icon: mdi:washing-machine min: 0 max: 20 step: 0.1 mode: box unit_of_measurement: W washing_machine_off: name: "Washing Machine Off" icon: mdi:washing-machine-off min: 0 max: 20 step: 0.1 mode: box unit_of_measurement: W washing_machine_delay_on: name: "Washing Machine Delay On" icon: mdi:clock min: 0 max: 900 step: 10 mode: box washing_machine_delay_off: # was 10 name: "Washing Machine Delay Off" icon: mdi:clock-alert min: 0 max: 900 step: 10 mode: box automation: - id: automation_swap_laundry_state alias: Swap Laundry trigger: - id: washing_machine_off platform: state entity_id: binary_sensor.washing_machine from: "on" to: "off" - id: washing_machine_on platform: state entity_id: binary_sensor.washing_machine from: "off" to: "on" - id: door_open platform: state entity_id: binary_sensor.washing_machine_door_contact from: "off" to: "on" for: seconds: 5 condition: [] action: - choose: - alias: "Washing machine is running. No need to swap laundry yet" conditions: - condition: trigger id: washing_machine_on - condition: state entity_id: input_boolean.swap_laundry state: "on" sequence: - action: logbook.log data_template: name: Swap Laundry - Load started entity_id: automation.swap_laundry message: Washing machine is running. No need to swap laundry yet. Turning off input_boolean.swap_laundry, in case it was left on - action: homeassistant.turn_off target: entity_id: input_boolean.swap_laundry - alias: "Washing machine finished while door was shut" conditions: - condition: trigger id: washing_machine_off - condition: state entity_id: binary_sensor.washing_machine_door_contact state: "off" sequence: - action: logbook.log data_template: name: Swap Laundry - Load needs to be swapped entity_id: automation.swap_laundry message: Washing machine turned off while the door was shut. Assuming that a load needs to be swapped - action: homeassistant.turn_on target: entity_id: input_boolean.swap_laundry - alias: "Door was opened while washing machine was off" conditions: - condition: trigger id: door_open - condition: state entity_id: binary_sensor.washing_machine state: "off" - condition: state entity_id: input_boolean.swap_laundry state: "on" sequence: - action: logbook.log data_template: name: Swap Laundry - Load swapped entity_id: automation.swap_laundry message: Door was opened while washing machine was off. Assuming a load just got swapped - action: homeassistant.turn_off target: entity_id: input_boolean.swap_laundry mode: single