Schneider
(Antonio Schneider)
February 9, 2019, 2:14pm
1
Hello everyone!
I was wondering if someone could help with this “not so problematic” problem
After I reboot Home Assistant, all devices restores the previous states correctly but my three template covers. Does this happens to you? I had to create a startup automation to send a close_cover
command, if not, my garage doors are always shown as opened after reboot.
Here are my configuration:
- platform: template
covers:
## Window cover
persiana_suite:
friendly_name: "Persiana da suíte"
open_cover:
service: script.persiana_suite_abrir
close_cover:
service: script.persiana_suite_fechar
stop_cover:
service: script.persiana_suite_parar
## Garage door
garagem_casa:
friendly_name: "Garagem de casa"
optimistic: true
open_cover:
service: script.garagem_casa_abrir
close_cover:
service: script.garagem_casa_fechar
They all work great anyways…
Thanks!
Doublet
February 25, 2020, 6:42am
2
Hi, did you manage to resolve this? optimistic: true does noet work in my case
Schneider
(Antonio Schneider)
February 25, 2020, 3:01pm
3
Hello sir! I have this working for quite a while now. Here an example of a custom template cover working 100%:
cover.yaml
- platform: template
covers:
persiana_suite:
value_template: "{{ is_state('input_boolean.persiana_suite', 'on') }}"
entity_id: input_boolean.persiana_suite
friendly_name: "Persiana da suíte"
open_cover:
service: script.persiana_suite_abrir
close_cover:
service: script.persiana_suite_fechar
stop_cover:
service: script.persiana_suite_parar
input_boolean.yaml
persiana_suite:
name: "Estado persiana da suíte"
script.yaml
# Broadlink
persiana_suite_abrir:
sequence:
- service: broadlink.send
data:
host: 192.168.20.30
packet: sgGEAwwXDBcMFwwXGAwLGAsYDBcMFxgLDBcMGBcMCxgMFxgLDBcYCwwXDBcMGAsYFwwMFxgLDBcMFwwXGAwLGAwXDBcYCwwXDBcMGBcMnTEYDBcMFwwMFwwXDBcMFxgMCxgLFwwYCxgYCwwXDBcYDAsXDBgXDAwXGAsMFwwXDBcMFxgMCxgXDAwXDBcMFxgMCxgLGAwXGAsMFwwXDBcY/Z0xGAsYCxgLDBcMGAsYDBcYCwwXDBcMFwwXGAwLGAsYFwwMFwwXGAsMFxgMCxgMFwwXDBcYCwwXGAsMGAsYCxgXDAwXDBcMFxgLDBgLGAwXGAydMRgLGAsYCwwXDBcMFwwXGAwMFwwXDBcMFxgMCxcMFxgMDBcMFxgLDBcYCwwYCxcMGAwXGAsMFxgLDBcMGAsYFwwMFwwXDBcYCwwYCxcMGBf9nTEYDBcMFwwMFwwXDBcMFxgLDBgLGAsYCxgXDAwXDBcYCwwYCxgXDAwXGAsMFwwXDBcMGBcMCxgXDAwXDBcMFxgMCxgLGAwXGAsMFwwXDBcYDJ0xGAsYCxgMCxgMFwwXDBcYCwwXDBcMFwwXGAwLGAwXGAsMFwwYFwwLGBcMDBcMFwwXDBcYCwwXGAsMGAwXDBcYCwwXDBgLGBcMCxgMFwwXGP2dMRgLGAsYCwwXDBcMFwwXGAwMFwwXDBcMFxgLDBcMFxgMCxgMFxgLDBcYDAsXDBgLGAwXGAsMFxgLDBcMGAsYFwwMFwwXDBcYCwwXDBgLGBcMnTIXDBcMGAsMFwwXDBcMFxgMCxgMFwwXDBcYCwwXDBcYDAsYCxgXDAwXGAsMFwwXDBgLGBcMDBcYCwwXDBcMFxgMCxcNFwwXGAsMFwwXDBcYDZ0xGAsYCxgLDBcMFwwYCxgYCwwXDBcMFwwYFwsMGAsYFwwMFwwXGAsMFxgLDBcMGAwXDBcYCwwYFwwLFwwYDBcXDAwXDBcMFxgMFwsYDBgLDAABB50xGAsYDBcMCxgMFwwXDBcYCwwXDBcMGAsXGAwLGAsYGAsMFwwXGAwLGBcMDBcMFwwXDBcYCwwXGAwLGAsYDBcYCwwXDBgLGBcMFwwYCxgLDAABB50xGAwXDBcMDBcMFwwXDBcYCwwYCxgLGAwXGAsMFwwXGAsMFwwYFwwMFxcMDBcMFwwXDBgXDAwXFwwMFwwXDBcYCwwYCxgLGBcMGAsYCxgLDAAF3AAAAAA==
- service: input_boolean.turn_on
entity_id: input_boolean.persiana_suite
- delay: '00:00:03'
alias: "Persiana abrir"
persiana_suite_fechar:
sequence:
- service: broadlink.send
data:
host: 192.168.20.30
packet: sgGEAwsYDBcMFwwXGAsMFwwYC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DBcYCwwXGAsMFwwXDBcYDAwXDBcYCxgLGAsYDAsYCwABCJ0xGAsYCxgLDBcMGAsYCxgXDAwXDBcMFwwXGAwLFwwYFwwMFwwXGAsMFxgLDBgLGAsYDBcYCwwXGAsMFwwXDBgXDAwXDBcYCxgLGAwXDAsYDAAF3AAAAAA==
- service: input_boolean.turn_off
entity_id: input_boolean.persiana_suite
- delay: '00:00:03'
alias: "Persiana fechar"
persiana_suite_parar:
sequence:
- service: broadlink.send
data:
host: 192.168.20.30
packet: sgH2ABgMFwwXDAwXDBcMFwwYFwsMFwwYCxgLGBcMDBcMFxgLDBcMGBcLDBgXDAwXDBcMFwwXGAsMFxgLDBgLGAwXFwwMFxgLDBcYCwwXGAwLGBcMnTIXDBgLGAsMFwwXDBcMFxgMCxgMFwwXDBcYCwwXDBcYDAsXDBcYDAsYGAsMFwwXDBcMFxgMCxcYDAwXDBcMFxgLDBcYDAsXGAsMGBcMDBcYC54xFwwYCxgLDBcMFwwXDBcYDAsYDBcMFwwXGAsMFwwXGAwLGAsYGAsMFxgLDBcMFwwXDBgXDAsYFwwMFwwXDBcYDAsYFwsMGBcMDBcYCwwXGAAF3AAA==
- delay: '00:00:03'
alias: "Persiana parar"
Be sure to include the above entities on the recorder settings so it can restore the previous state after a reboot.
Hope it helps.
1 Like
Doublet
February 26, 2020, 9:21am
5
Done, 100% success thnx again
1 Like
Schneider
(Antonio Schneider)
February 26, 2020, 12:49pm
6
Amazing! I’m glad I could help. Cheers!