mvzut wrote: ↑Friday 14 December 2018 10:41
...
If I may make one more observation?
Thermostats in the Alexa system seem to have a setpoint and an actual temperature...
You're comment remember me that initially I've also wrote this script to be able to control thermostat temperature in my home . I've several "virtual" thermostat, "day rooms", "night rooms" and bath working with scripts I've wrote.
This was the more complex task of this skill ... Alexa thermostats are not simple =>
https://developer.amazon.com/fr/docs/sm ... vices.html with 1 to 3 possible setpoints and may report a temperature as a "temperature sensor" (this is what you remove commenting the line 190). You're right in the implementation I've done, a thermostat report as his temperature the current setpoint, this was acceptable for me
One of my disappointment implementing the skill is that I was never able to implement a: "Alexa make ... COLD/WARM..." This is partially related to my own dz installation/setup. I'm using dz thermostats only to manage setpoint temperatures (COLD, WARM ...) and a virtual switch to control heat mode (itself changed automaticaly by others, planned, switchs, but so can also be changed manually). The switch value is later used by other scripts to finally control heaters. So I've tried in the skill to be able to translate "Alexa make ... COLD/WARM" to -> set a Selector switch to ... one of the reason an Alexa_extra variable exists and some lines code (line 326,327 .... for example) which can appear strange.
I've finally abandoned.
In any case at least you may be able to control with Alexicz the setpoint temperature (and report it in my implementation ...). I don't know if there is a "sentence" to ask for the setpoint temperature, is this possible ?
Looking at this thermostat implementation, I've make some choices, perhaps a smarter implementation can be done.