Jak zmienić sensor na przycisk

Witam
Na bazie https://blakadder.com/pir-in-tasmota-integration/ zrobiłem “bramkę odbiorczą pilotów RF”

Backlog rule1 
on Switch1#state=1 do publish stat/%topic%/Pilot-A ON endon on Switch1#state=0 do Publish stat/%topic%/Pilot-A OFF endon
on Switch2#state=1 do publish stat/%topic%/Pilot-B ON endon on Switch2#state=0 do Publish stat/%topic%/Pilot-B OFF endon 
on Switch3#state=1 do publish stat/%topic%/Pilot-C ON endon on Switch3#state=0 do Publish stat/%topic%/Pilot-C OFF endon
on Switch4#state=1 do publish stat/%topic%/Pilot-D ON endon on Switch4#state=0 do Publish stat/%topic%/Pilot-D OFF endon;
rule1 1; SwitchTopic 0; SwitchMode1 2; SwitchMode2 2; SwitchMode3 2; SwitchMode4 2; Restart 1
<ENTER>
rule2
on system#boot do publish2 homeassistant/binary_sensor/%macaddr%_motion1/config {"name":"Pilot-A","state_topic":"stat/%topic%/Pilot-A","availability_topic":"tele/%topic%/LWT","payload_available":"Online","payload_not_available":"Offline","device_class":"motion","force_update":true,"off_delay":1,"unique_id":"%macaddr%_motion1","device":{"connections":[["mac","%macaddr%"]]}}
 endon
on system#boot do publish2 homeassistant/binary_sensor/%macaddr%_motion2/config {"name":"Pilot-B","state_topic":"stat/%topic%/Pilot-B","availability_topic":"tele/%topic%/LWT","payload_available":"Online","payload_not_available":"Offline","device_class":"motion","force_update":true,"off_delay":1,"unique_id":"%macaddr%_motion2","device":{"connections":[["mac","%macaddr%"]]}}
 endon
on system#boot do publish2 homeassistant/binary_sensor/%macaddr%_motion3/config {"name":"Pilot-C","state_topic":"stat/%topic%/Pilot-C","availability_topic":"tele/%topic%/LWT","payload_available":"Online","payload_not_available":"Offline","device_class":"motion","force_update":true,"off_delay":1,"unique_id":"%macaddr%_motion3","device":{"connections":[["mac","%macaddr%"]]}}
 endon
<ENTER>
Backlog Rule2 1; Restart 1
<ENTER>
rule2 + on system#boot do publish2 homeassistant/binary_sensor/%macaddr%_motion4/config {"name":"Pilot-D","state_topic":"stat/%topic%/Pilot-D","availability_topic":"tele/%topic%/LWT","payload_available":"Online","payload_not_available":"Offline","device_class":"motion","force_update":true,"off_delay":1,"unique_id":"%macaddr%_motion4","device":{"connections":[["mac","%macaddr%"]]}}
 endon
<ENTER>
Backlog Rule2 1; Restart 1
<ENTER>

Wszystko działa ale HA wykrywa jako ‘sensor ruchu’ a mnie by zależało na normalnym przycisku lub przełączniku. Czy jest jakaś szansa na to? Jeśli tak to proszę o wskazówki.

Pozdrawiam

Jak masz ustawione ,"device_class":"motion", to tak będzie ci się wyświetlało.

Tutaj masz klasy urządzeń https://www.home-assistant.io/docs/configuration/customizing-devices/#device-class

Nie wiem czy wystarczy sama zmiana na ,"device_class":"switch", lub "device_class":"button",

Możesz też spróbować zmienić w integracji tasmota.