Hey Guys,
i have a problem with a automation.
I want to start a device if a state of a mqtt entity device is to low. But it doesnt works. My Device ignore the state.
It is a chlorine pump for my Pool. I want to start this if the poolpump is working and the ORP stage (chlorine) is under 650.
If i make a test it works, but i think the attribute „state“ ist wrong, because the automation doesn‘t work, if the mqtt state is under 650
alias: Automatisch Chlor
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.garten_orp
attribute: states
below: '650'
condition:
- condition: device
type: is_off
device_id: 48a7487xxxxxxxx
entity_id: switch.nicht_vergeben_pooltechnik
domain: switch
for:
hours: 1
minutes: 0
seconds: 0
- condition: device
type: is_on
device_id: 1c78ab5b128xxxxxxxx
entity_id: switch.poolpumpe
domain: switch
action:
- type: turn_on
device_id: 48a7487xxxxxxxxx
entity_id: switch.nicht_vergeben_pooltechnik
domain: switch
- delay:
hours: 0
minutes: 1
seconds: 30
milliseconds: 0
- type: turn_off
device_id: 48a7xxxxxxxxxx
entity_id: switch.nicht_vergeben_pooltechnik
domain: switch
mode: single
If i make a test it works, but i think the attribute „state“ ist wrong.
i hope someone could help me