I have the CBI Astutute consented to HA via localtuya, I have set up some automation as to when to turn it on, but my idea is to turn it off again when it’s hot instead of leaving it on for a set time (not that I have worked that out yet either).
This to me looked like it should have worked, but it’s not
alias: Power off Geyser
description: ''
trigger:
- platform: device
type: turned_on
device_id: 1e1af0f2be7ea3bbb21314ff4ff4c755
entity_id: switch.geyser
domain: switch
condition:
- condition: state
entity_id: switch.geyser
state: '0'
attribute: current_consumption
action:
- type: turn_off
device_id: 1e1af0f2be7ea3bbb21314ff4ff4c755
entity_id: switch.geyser
domain: switch
mode: single
As a geyser will run until it’s hot, the current consumption would drop to zero when it’s finished, so I am checking if it is on but not drawing any current.
Any help would be much appreciated.