Hi,
I have a magnetic door sensor PT2262 (RFXCOM - lighting 4) that only send On.
I would like to change its status with a LUA script. How to do that in LUA ? (I don't want to use the Off delay option of the interface.)
I have tried : commandArray['MailBox']='Off' and 'Closed' without success.
My use case is : My Mailbox switches On when receiving mails and returns Off at midnight.
how to change the status of a sensor ?
Moderator: leecollings
-
- Posts: 192
- Joined: Monday 12 January 2015 23:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: FRANCE
- Contact:
how to change the status of a sensor ?
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
-
- Posts: 63
- Joined: Sunday 14 July 2013 11:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Ipswich, UK
- Contact:
Re: how to change the status of a sensor ?
Hi. Quite a few sensors exhibit that behaviour. Best use the door sensor to change the state of dummy device and base your logic the the dummy device. Change the dummy device state as your heart desires.
What has ..
What has ..
... got to do with anything?My use case is : My Mailbox switches On when receiving mails and returns Off at midnight.
-
- Posts: 192
- Joined: Monday 12 January 2015 23:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: FRANCE
- Contact:
Re: how to change the status of a sensor ?
I use this door sensor to detect the delivery of regular mail. And I want it to stay on, all the day until I reset it at the end of the day.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
Who is online
Users browsing this forum: No registered users and 1 guest