Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New sensors #8

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

New sensors #8

wants to merge 18 commits into from

Conversation

MCLW
Copy link

@MCLW MCLW commented Apr 19, 2024

Hi I create a new button to trigger the venting position and a new text_sensor to display the door state

@Handy-Harry
Copy link

Great! Thanks

@jkaberg
Copy link

jkaberg commented Apr 30, 2024

@MCLW would it be possible to change the button to an switch instead? eg switch (ventilation) on = ventilation position, off = closed (or previous state)

@MCLW
Copy link
Author

MCLW commented Apr 30, 2024

Hi @jkaberg,

yes it is possible, but I don't understand the point behind a switch. When the ventilation button is pressed, the door moves to the ventilation position. If it is pressed again, the gate closes. The position can be read out via the text sensor or via the cover position.

Esphome allows you to create custom switches, sensors, etc. Via the templateing. You can use the existing sensors for your idea. See the documentation Template sensor

@jkaberg
Copy link

jkaberg commented Apr 30, 2024

There's more logic involved on the user end if button is used, if an switch is used one knows it will go to ventilation position if turned on (button can be either ventilation position or closed). But sure, template would also work

@BradleyFord
Copy link

BradleyFord commented Apr 30, 2024 via email

@14yannick 14yannick mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants