Basic question on automation and to set a device state

Hello,
I am struggling with HA and fails in most obvious steps…

In aytomation when I set the Alarm Control panel to ‘arm_away’ I also like to set the state of my PIR detector to ‘off’ since it goes ‘on’ when it detects motion detection.

So in Automation when I activate the alarm, how do I change the state of the device “binary_sensor.slim_multi_sensor_pir_temperature_illumination_home_security_motion_detection” to ‘off’ ?
I.e - what action do I do in the automation GUI to set the PIR device to “off”?
Thanks for any support - appreciated!

Isn’t it doing what it’s supposed to do? Turn on when it detects motion?

A binary_sensor is a read-only device. There is no service call to set a binary_sensor’s state. Even if you did set the binary_sensor’s state to off, it would change to on the moment the physical PIR sensor detected movement.

Yes it is what it suppose to do. The problem is that it stays on for like 20 hrs or something like that.
When the sensor has trigged a motion, I like it to be abke to set it to “clear” when I set the “away-from-home” state on the alarm panel.
Now the alarm is not working until the PIR decides to set the Clear state by it selfe that takes several hours.
If I use developer tools to set the state “manually” it works fine and I like to do this in automation.

I realize that the sensor is “read only” but if a sensor detects “motion” and keeps that state, how useful is that I ask myself
I obviously is doing something wrong here…
I can use the entity “sensor.slim_multi_sensor_pir_temperature_illumination_home_security_motion_sensor_status” that toggles but that was auto-hidden and I assume I should work with the motion_detection entity.

What kind of PIR is this? That’s totally useless in my opinion…
That’s not how a PIR should work. Mine turn on when they detect motion and off after 10 seconds of no motion detection.

PST02B by Philio Technology Corp
It creates:


The Entitiy with the running guy is called:
‘binary_sensor.slim_multi_sensor_pir_temperature_illumination_home_security_motion_detection’
This is the one that goes:

And stays like that for hours, and I like to reset it to:

But this I can only do in developer tools.
Perhaps there is a timer somewhere to control the “reset” but I can not find it…

This has to be some configuration issue, probably on the device itself.
You need to set one of these configuration parameters http://manuals-backend.z-wave.info/make.php?lang=de&sku=PST02-1A&cert=ZC10-16030003

As a workaround I use
image
that switches state basically directly but that entity was deactivated after the z-wave JS installation…
That entity is called " sensor.slim_multi_sensor_pir_temperature_illumination_home_security_motion_sensor_status"

Thanks sir - that make sense to me.
Just need to figure out what parameter to set and the how to set it :slight_smile:Is that with developer tools in HA i pass such configuration or do I need ti use a external tool somehow?
Again thanks for comments guys!