Door sensor / Dörr sensor

http://karpero.mine.nu/ha

Moderators: Daniel, tom_rosenback, Telldus

Post Reply
Redg
Posts: 10
Joined: Fri Mar 17, 2023 9:45 am

Door sensor / Dörr sensor

Post 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
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Door sensor / Dörr sensor

Post 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.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Redg
Posts: 10
Joined: Fri Mar 17, 2023 9:45 am

Re: Door sensor / Dörr sensor

Post 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
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Door sensor / Dörr sensor

Post 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
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Post Reply