Page 1 of 1

Door sensor / Dörr sensor

Posted: Fri Mar 17, 2023 9:45 am
by Redg
Hi!
Can I connect a door sensor or ir sensor to HA, and use it to trigger events in HA?
Lets say I open a door, the door sensor send it's signal to HA and then HA sends it's signal to turn on a specific lamp?

I have tried to figure this out by my own, but no success...
Used the search function of this forum as well...

Hej! Kan jag ansluta en dörr sensor eller ir sensor till HA, och använda den till att aktivera händelser i HA?
T.ex. att jag öppnar en dörr, dörrsensorn skickar sin signal till HA och sedan skickar HA sin signal för att knäppa på en specifik lampa.

/Tomas

Re: Door sensor / Dörr sensor

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
Redg wrote:Hi!
Can I connect a door sensor or ir sensor to HA, and use it to trigger events in HA?
Lets say I open a door, the door sensor send it's signal to HA and then HA sends it's signal to turn on a specific lamp?

I have tried to figure this out by my own, but no success...
Used the search function of this forum as well...

Hej! Kan jag ansluta en dörr sensor eller ir sensor till HA, och använda den till att aktivera händelser i HA?
T.ex. att jag öppnar en dörr, dörrsensorn skickar sin signal till HA och sedan skickar HA sin signal för att knäppa på en specifik lampa.

/Tomas
Hi Tomas,

Yes this is possible if you are using Linux, can be solved on Windows too but not with same response time. Take a look at http://developer.telldus.se/blog/2012/1 ... om-signals for further info.

Re: Door sensor / Dörr sensor

Posted: Fri Mar 17, 2023 9:45 am
by Redg
Great!
Now I feel less dumb! :D
So, I've got some scripting to do... to bad I'm no good at it...

@Tom
Thanks!
I won't in no way diminish your excellent work, it's really good!
But do you see this type feature entering HA at any time?
I'm not lazy, I'm just not that confident in my scripting skills :roll:

/Tomas

Re: Door sensor / Dörr sensor

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
Redg wrote:Great!
Now I feel less dumb! :D
So, I've got some scripting to do... to bad I'm no good at it...

@Tom
Thanks!
I won't in no way diminish your excellent work, it's really good!
But do you see this type feature entering HA at any time?
I'm not lazy, I'm just not that confident in my scripting skills :roll:

/Tomas
I´m afraid this will never be part of HA as such, the script example could however be, like described in the guide below.

Guide: Script execution from signals