From browser it’s just opens the door and door closes after 5 seconds automatically.
This is the output from browser.
{ "retcode": 0, "action": "trig", "message": "OK" }
From browser it’s just opens the door and door closes after 5 seconds automatically.
This is the output from browser.
{ "retcode": 0, "action": "trig", "message": "OK" }
The state detection is not working, and it’s not really a binary sensor as the “off” is automatic.
Make it a plain rest_command
and call it through a service:
rest_command:
7545_door_trigger:
url: https://door.example.net/api/relay/trig?mode=0&num=1&level=1&delay=5
verify_ssl: false
service: rest_command.7545_door_trigger
Thanks,
It works under Developer Tools call service, how can I create a button of it.
Seriously. Type “home assistant button call service” in google
Thanks for help. It’s working correctly now
type: custom:button-card
icon: hass:door
tap_action:
action: call-service
service: rest_command.7545_door_switch