Hello all!
I have a HA VM:
Home Assistant 2023.6.3
Supervisor 2023.06.2
Operating System 10.3
I have a ConBee II with firmware 26580700, version 2.22.02. Everything is working fine for my temp sensor, door sensor, but my water sensor are kinda… weird.
like a few months ago, I tested them so if they have water on them, the binary_sensor.namesensor_tampered is triggering normally. I could see off to On, without any problem.
I’m trying to install a new one, but this binary_sensor doesn’t work anymore… Even if I drop the sensor in the water, it’s not changing. I see the Moisture binary sensor going from Wet to Dry (true state is off to on from logs and trace). Ok Fine, I’ll use this to alert me.
The automation is triggering, but no Telegram is sent. Seems to be an issue with the trigger.to_state.name I believe, as when I remvoe it, it works
platform: state
entity_id:
- binary_sensor.ac_bureau
from: ‘off’
to: ‘on’
and this is the action
service: notify.b2_telegram
data:
message: Water leak for {{ trigger.to_state.name }}
title: “ALARM: Water leak”
device_class: moisture
friendly_name: AC_Bureau
on: true
temperature: 30
I tried using trigger.entity_id using a new automation (device instead of state), this works but I want the friendly name. I don’t know why it stopped working for all my sensor.
Any help is appreciate. I’m still testing new stuff, but I’m running out of ideas
Thanks!
Edit: here’s the automation:
alias: “ALARME: Fuite d’eau”
description: “”
trigger:
- platform: state
entity_id:- binary_sensor.ac_bureau
from: “off”
to: “on”
condition: []
action:
- binary_sensor.ac_bureau
- service: notify.b2_telegram
data:
message: Water leak for {{ trigger.to_state.name }}
title: “ALARM: Water leak”
mode: single