button: - platform: restart name: "${board_name} Restart" # Accept call - platform: template name: "${board_name} accept call" icon: "mdi:door-open" on_press: if: condition: binary_sensor.is_on: incoming_call then: script.execute: call_accept else: logger.log: "No incoming call" # Reject call - platform: template name: "${board_name} reject call" icon: "mdi:door-closed-lock" on_press: if: condition: binary_sensor.is_on: incoming_call then: script.execute: call_reject else: logger.log: "No incoming call"