Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ir Sensor #18

Open
lupinve opened this issue Oct 23, 2020 · 10 comments
Open

Ir Sensor #18

lupinve opened this issue Oct 23, 2020 · 10 comments

Comments

@lupinve
Copy link

lupinve commented Oct 23, 2020

hi, i'm testing again Vimar IR sensor for check presence of someone on the room.
https://www.vimar.com/en/int/catalog/product/index/code/20485

at the moment it is not working correctly because once the sensor is detected the presence of someone is always on

i have found this playod when i try of on/off the sensor:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:BodyNO-PAYLOADNO-HASCHODENO-OPTIONALWEB-DOMUSPAD_SOAP5f82f98d8a3ca5DML-SQLSELECTSELECT ID,NAME,STATUS_ID,CURRENT_VALUE FROM DPADD_OBJECT WHERE ID IN (229,265,399,595,1106);92</soapenv:Body></soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Body1NO-HASHCODENO-OPTIONALSWEB-DOMUSPAD_SOAP5f82f98d8a3ca10595SETVALUE</soapenv:Body></soapenv:Envelope>
ON
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:BodyNO-PAYLOADNO-HASCHODENO-OPTIONALWEB-DOMUSPAD_SOAP5f82f98d8a3ca5DML-SQLSELECTSELECT ID,NAME,STATUS_ID,CURRENT_VALUE FROM DPADD_OBJECT WHERE ID IN (229,265,399,1106);88</soapenv:Body></soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Body0NO-HASHCODENO-OPTIONALSWEB-DOMUSPAD_SOAP5f82f98d8a3ca10595SETVALUE</soapenv:Body></soapenv:Envelope>
OFF
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:BodyNO-PAYLOADNO-HASCHODENO-OPTIONALWEB-DOMUSPAD_SOAP5f82f98d8a3ca5DML-SQLSELECTSELECT ID,NAME,STATUS_ID,CURRENT_VALUE FROM DPADD_OBJECT WHERE ID IN (229,265,399,1106);88</soapenv:Body></soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Body1NO-HASHCODENO-OPTIONALSWEB-DOMUSPAD_SOAP5f82f98d8a3ca10595SETVALUE</soapenv:Body></soapenv:Envelope>
ON
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:BodyNO-PAYLOADNO-HASCHODENO-OPTIONALWEB-DOMUSPAD_SOAP5f82f98d8a3ca5DML-SQLSELECTSELECT ID,NAME,STATUS_ID,CURRENT_VALUE FROM DPADD_OBJECT WHERE ID IN (229,265,399,595,1106);92</soapenv:Body></soapenv:Envelope>

Thanks for your help
Matteo

@h4de5
Copy link
Owner

h4de5 commented Oct 24, 2020

I guess the iR Sensor is listed as a normal light switch currently in HA?
If you trigger the sensor from the web server, does it automatically go back to the "off" state?

@lupinve
Copy link
Author

lupinve commented Oct 24, 2020 via email

@lupinve
Copy link
Author

lupinve commented Oct 24, 2020

Yes, in HA is like a normal light

In the web server the sensor goes ON at the first detection but then always stays ON . Could it be a problem of sensor detection by the web server?

Thanks
Matteo

@h4de5
Copy link
Owner

h4de5 commented Oct 24, 2020

Is this the normal behavior on the web server? So that it stays on?
Maybe thss device has some extra attributes that I do not handle at the moment. I'll add some debug code as soon as I have time.

@lupinve
Copy link
Author

lupinve commented Oct 25, 2020

It's not a correct behavior , in the web server the sensor should turn off if it does not detect movement
this is xml imported

<index index="118" label="SENSORE IR CORRIDOIO INTERRATO" number="0" old_group_without_main="True" room="CORRIDOIO" type="SENSORE IR" zone="INTERRATO"> <datapointtypes channel="CH_Main_Automation"> <datapointtype mode="rw" name="DPTSwitch"> <groupobject address="0EE9"/> </datapointtype> </datapointtypes> <device address="110E" manufacturer="002C" name="ConvimarSAISensoreIR" type="0001" version="0"> <properties/> <functionalblock channel="CH_Main_Automation" classification="sensor" index="2" name="ConvimarSensoreIR"> <groupobjects> <datapointtype mode="rw" name="DPTSwitch"> <groupobject address="0DF9"/> </datapointtype> </groupobjects> <properties/> </functionalblock> </device>
Thanks for your help

@h4de5
Copy link
Owner

h4de5 commented Oct 25, 2020

@lupinve : I added some debugging code for entities having " IR " in it's names. please set your logging settings to debug and let me know the outcome.

see: https://github.com/h4de5/home-assistant-vimar#troubleshooting

besides of this - if there are no new attributes, then I am afraid I can't fix this using the integration. you may need to setup an automation that resets the state to off as soon as it detects a turn on. The problem will be, that the integration may not read out any short interactions with the motion sensor - because it does only read out states every 6-8 seconds. so any movement that is shorter than this, may be overseen.

this is one of the reasons why I do not really want to tap into the SAI/alarm systems thing at the moment.

@lupinve
Copy link
Author

lupinve commented Oct 26, 2020

hi,
this is my logging

2020-10-26 09:36:50 DEBUG (SyncWorker_9) [custom_components.vimar_platform.vimarlink] IR Sensor object returned from web server: CH_Main_Automation / SENSORE IR CORRIDOIO INTERRATO
2020-10-26 09:36:50 DEBUG (SyncWorker_9) [custom_components.vimar_platform.vimarlink] IR Sensor object has states: {'on/off': {'status_id': '596', 'status_value': '1', 'status_range': 'min=0|max=1'}}
2020-10-26 09:36:50 DEBUG (SyncWorker_9) [custom_components.vimar_platform.vimarlink] IR Sensor object returned from web server: CH_Main_Automation / SENSORE IR SALOTTO
2020-10-26 09:36:50 DEBUG (SyncWorker_9) [custom_components.vimar_platform.vimarlink] IR Sensor object has states: {'on/off': {'status_id': '599', 'status_value': '1', 'status_range': 'min=0|max=1'}}

Thanks

@h4de5
Copy link
Owner

h4de5 commented Oct 26, 2020

As i thought. It just has an on/off state. As i said, i am afraid i can't fix that :(
Try out an automation that unsets the switch as soon as it is activated.

@lupinve
Copy link
Author

lupinve commented Oct 26, 2020

Ok thanks, i will try out an automation

@lupinve
Copy link
Author

lupinve commented Nov 3, 2020

Hi, the ir switch works fine with turn off automatically.

if it can help you with the integration, I will pass you another type of interface that I used before between vimar and HA.
Here you find information from its creator https://github.com/papergion/scsknxgate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants