Grocy Stock / Set Dishwasher active when power detected

View All Rules

alias: Grocy Stock / Set Dishwasher active when power detected
trigger:
  - platform: numeric_state
    entity_id: switch.gf_dinning_dishwasher_switch
    value_template: '{{ state.attributes.current_power_w }}'
    above: 10
condition:
  - condition: state
    entity_id: sensor.gf_dinning_dishwasher_status
    state: Idle
action:
  - service: input_select.select_option
    data:
      entity_id: input_select.gf_dinning_dishwasher_status
      option: Running
  - service: rest_command.grocy_consume_item
    data:
      product_id: 4
      amount: 1

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.