#do you think you could possibly help me
1 messages · Page 1 of 1 (latest)
Something like this perhaps:
cover:
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garage Door"
value_template: "{{ is_state('binary_sensor.garage_main_door_window_door_is_open', 'on') }}"
open_cover:
- service: button.press
target:
entity_id: button.ratgdov25i_193bd7_toggle_door
close_cover:
- service: button.press
target:
entity_id: button.ratgdov25i_193bd7_toggle_door
stop_cover:
- service: button.press
target:
entity_id: button.ratgdov25i_193bd7_toggle_door
Note that since you only have one button that does both open and close, the actions for open/close/and stop are all the same action (press the button)
value_template here is: how can the cover infer the state of the cover from evaluating a template of other entities.
open_cover (and close and stop) are what actions to execute when open/close/stop buttons are pressed in the UI.
presently, I have a button card that shows the door open or closed. I didn't have another button, but when I press it, it does the toggle. all I was trying to do is take the button card and when I press it toggle the other entity
So for the moment I would suggest forget about your dashboard. The purpose of the cover template is to create a cover entity.
Have you done this, and does the cover entity exist and you can interact with it successfully?
I honestly have no idea how to interact with it. I've been trying to trigger it from the dashboard and haven't got very far. I'm going around around in circles trying to do other ways of doing the same thing.
lets find if the entity exists. go to developer tools/states. in the filter type cover.
Does there exist an entity like cover.garage_door?
click on the (i) and you will get the more info popup
it should have a toggle slider and say "Open" or "Closed"
ok, that's good. now you can go back to your dashboard, and you can choose what kind of card you want to use to represent this.
if you want to use a button card, you can add the card, and select cover.garage_door for the entity
oooh
then I think when you press it it should operate and go up/down.
ok
and it should reflect the current state of the door
hang on
this works wonderfully thank you so much. My other garage door that I was working on earlier shows up as a cover also but I don't see it anywhere in the config file so I'm not sure where earth it is. I must've stuck it somewhere. I'll have to go and see where
I should be able to figure out all the tweaks from now. I hope thank you so much again. I really owe you a lot. You saved me a lot of anguish for the evening.
👍
where did it get the icon of the garage door? its not in the cover and not in the toggle ratgdo
device_class: garage