home-assistant-vimar icon indicating copy to clipboard operation
home-assistant-vimar copied to clipboard

Regex for set entities as binary_sensor

Open lupinve opened this issue 2 years ago • 2 comments

Hi,

thanks for your great job !!!

i don't know as set the Regex number for my iR Sensor listed as a normal light switch currently in HA

i have this value entities

which number i have to set in RegEx for set entities switch as bynary_sensor ?

If i have a lot ot this ir sensor, can i set more number ?

RegEx

lupinve avatar Oct 22 '22 16:10 lupinve

@davideciarmiello would this work using the regex options?

h4de5 avatar Oct 22 '22 22:10 h4de5

Hi. Yes it work with regex. Attach my config E1236037-1FD0-4B59-A395-FDFFCB9147B2

the match is executed on friendly name. In my config i have checked “use naming as vimar”, that use object name as friendly name.

you can try: .*(Ir.Sensore|sensore ir).

Thanks!

davideciarmiello avatar Oct 22 '22 22:10 davideciarmiello

@lupinve have you tried this? if its not working let us know.

h4de5 avatar Nov 20 '22 01:11 h4de5

Hi Andi,

I'm sorry for the late reply....

Thanks for your help !!!!

yes it's work fine but the vimar ir sensor can't change the state from off to on so i have to back to light mode

Il giorno dom 20 nov 2022 alle ore 02:56 Andi @.***> ha scritto:

@lupinve https://github.com/lupinve have you tried this? if its not working let us know.

— Reply to this email directly, view it on GitHub https://github.com/h4de5/home-assistant-vimar/issues/53#issuecomment-1321012356, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYLXEZNBUTOGBZKLICZLGTWJGALDANCNFSM6AAAAAARL4YVPI . You are receiving this because you were mentioned.Message ID: @.***>

lupinve avatar Nov 21 '22 10:11 lupinve