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

it's possible to create a thermostat with this library? #199

Open
TERM4X opened this issue Jan 31, 2022 · 11 comments
Open

it's possible to create a thermostat with this library? #199

TERM4X opened this issue Jan 31, 2022 · 11 comments

Comments

@TERM4X
Copy link

TERM4X commented Jan 31, 2022

there's a way to make the alexa sees the ESP as a thermostat device?

@Aircoookie
Copy link
Owner

Only lights, however Alexa will still understand "set to x degrees" and set the device % accordingly. You can use espalexaDevice->getDegrees() to use this in your code.

@dfjose
Copy link

dfjose commented Jan 31, 2022

how difficult could it be, to create a different device from lights, controller type devices. for those devices (thermostat, temperature, etc) that only read percentage from a local webserver?

@TERM4X
Copy link
Author

TERM4X commented Feb 1, 2022

Only lights, however Alexa will still understand "set to x degrees" and set the device % accordingly. You can use espalexaDevice->getDegrees() to use this in your code.

So there's not a way to have a thermostat interface in the alexa app?

@TERM4X
Copy link
Author

TERM4X commented Feb 1, 2022

I'm really trying to make my home a smart-home with only the use of a esp and a arduino, but I'm having a lot of macro problem like this one

@Aircoookie
Copy link
Owner

So there's not a way to have a thermostat interface in the alexa app?

True unfortunately. Espalexa uses the legacy local Philips hue API, which by definition only supports lights (and technically on/off switches, though that doesn't work well either)

@TERM4X
Copy link
Author

TERM4X commented Feb 1, 2022

there's the possibility to create a device without the On/off command but just a slider?

@Aircoookie
Copy link
Owner

no

@dfjose
Copy link

dfjose commented Feb 1, 2022

but Philips hue api use /resource/homekit. you can implement it ...?

@TERM4X
Copy link
Author

TERM4X commented Feb 2, 2022

so if somebody turn off my themostat the degrees will go to 0?

@ScaredyCat
Copy link

You can guard against that by having your code ignore values below, say, 6 degrees - as an anti-freezing measure. You can do the same for values that are too high as well. ie have some max/min acceptable values.
If you don't send back the acknowledgement then alexa will assume the command did not get carried out (which is what you want) and so would set the value back to what it was. If you set the value to 6 if someone tries to set it to 0 then respond with "I've set it to 6" alexa (and the app should reflect that.)

@DarrianW
Copy link

DarrianW commented Dec 9, 2023

Is there anyway to have or modify the percentage on the alexa side to go above 120% i'm doing a similar temp project to control a tank heater and it needs to go to 122 degrees but it says it's out of bounds.

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

No branches or pull requests

5 participants