I am trying to blink a LED from a Raspberry Pi GPIO Pin from an Automation.
But the delay is not working, the LED is always on/off for around 1 second instead of the defined 150 milliseconds.
- delay:
milliseconds: 150
Is it not possible to make it faster than 1 second?
Thats my Automation:
- alias: switch_doorbell_speaker_on_off
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id:
- sensor.r433_mhz_hub_doorbell_status
to: 'ring'
action:
- service: switch.turn_on
entity_id: switch.doorbell_speaker
- delay:
milliseconds: 150
- service: switch.turn_off
entity_id: switch.doorbell_speaker
- delay:
milliseconds: 150
- service: switch.turn_on
entity_id: switch.doorbell_speaker
- delay:
milliseconds: 150
- service: switch.turn_off
entity_id: switch.doorbell_speaker