Hello,
I’m using the RfxTrx integration and my KaKu 433Mhz motion sensor is automatically found but as an on/off switch (AC)
How can I convert it to a real motion sensor in HASS?
Hello,
I’m using the RfxTrx integration and my KaKu 433Mhz motion sensor is automatically found but as an on/off switch (AC)
How can I convert it to a real motion sensor in HASS?
I think using the configuration variable device_class
could work, see RFXCOM RFXtrx - Home Assistant look at the bottom end of this page.
The thing is, I have nothing in configuration as it’s an integration that found devices itself.
So I need to create something and I tried this but it’s not working:
binary_sensor:
- platform: rfxtrx
name: Hall Motion
entity: binary_sensor.kaku_motion_sensor_hall_upstairs
device_class: motion
The identity that was automatically found is called binary_sensor.kaku_motion_sensor_hall_upstairs
You can try the OPTIONS on the RFXCOM integration-card, maybe you can set/change something for the particular device?
The other option is using a template: Template Binary Sensor - Home Assistant
Unfortunately, the only options there is adding a device, removing device and configure off_delay and repetitions.
Ok, then indeed the template option is the next option to try.
Yes, disabling the switch entity and using a template did the trick.
Thanks.
- platform: template
sensors:
kaku_motion_sensor_hall_upstairs:
device_class: motion
value_template: "{{ is_state('switch.kaku_motion_sensor_hall_upstairs', 'on') }}"