JM-Video
(Jm Video)
April 13, 2021, 4:00pm
1
Hello, I need help or a tip.
I have a Wemos D1 mini with ESPHome intigriet.
The Wemos D1 mini does IR remote.
the switch_ir_on is generated and routed to HomeKit and “SIRI” with the HASS Bridge.
If “SIRI” operates the switch, it remains ON .
I would like the switch to switch OFF automatically after 10 seconds
Many greetings Jochen
…
remote_transmitter:
pin:
number: GPIO01
carrier_duty_percent: 50%
switch:
platform: template
name: “ir_on”
turn_on_action:
remote_transmitter.transmit_samsung:
data: 0x111107f8
…
I don’t know much about Siri and HomeKit. But for me it looks like a switch is a bad abstraction for the use case.
But I think you can use the on_turn_on trigger to do a turn_off:
switch:
platform: template
name: “ir_on”
id: id_ir_on
turn_on_action:
remote_transmitter.transmit_samsung:
data: 0x111107f8
on_turn_on:
- delay: 10s
- switch.turn_off: id_ir_on
JM-Video
(Jm Video)
April 14, 2021, 7:45pm
3
It’s a shame the code doesn’t work
A switch-off IR pulse is sent.
The status remains unchanged in HomeKit.
Thank you for the effort
Greetings Jochen
JM-Video
(Jm Video)
April 14, 2021, 7:48pm
4
a button in ESPHome would be of help.
a switch that works after 10 seconds
goes back to rest by itself
I am wondering why it doesn’t work. Does the state of the switch itself (in the esphome log, in HA) not change or does it only not change in HomeKit?
But well, I have never used template switches.
JM-Video
(Jm Video)
April 17, 2021, 1:57pm
6
Hello,
the status in the HomeAssistant changes,
but in HomeKit it is unchanged