Closed kmickeletto closed 6 years ago
could you please share the capabilities section? looking to check. if it support switch and level.
thank you.
Here you are. I was able to create a temporary workaround by creating virtual switches and linking the state of the virtual switch to the physical vent switch, but this is obviously not ideal.
definition(name: "My Flair Vent", namespace: "yracine", author: "Yves Racine") {
capability "Switch Level"
capability "Switch"
capability "Refresh"
capability "Sensor"
capability "Temperature Measurement"
capability "Actuator"
capability "Health Check"
thats strange it has switch and level. please replace the function updateVentP(...) with the following code and share the output from it.
def updateVentIndP(evt) {
// ifDebug("updateVentIndP", 'info')
def child = getChildDevice(getRoom())
def lvl = 0
if (roomVents) {
if (roomVents.hasAttribute('level')) {
lvl = roomVents.currentLevel
ifDebug("updateVentIndP: level: $lvl")
}
else if (roomVents.hasAttribute('switchLevel')) {
lvl = roomVents.currentSwitchLevel
ifDebug("updateVentIndP: switchLevel: $lvl")
}
if (lvl instanceof List) lvl = lvl.sum() / lvl.size();
}
if (child) child.updateVentIndC(!roomVents ? -1 : (roomVents.currentSwitch == 'off' ? 0 : lvl));
}
Hi adey, I updated to the latest code and it is working. Sorry for the delay here.
I am assuming you integrated this into the update?
cool. no worries.
yeah i add checking for switch level additional to level.
Hi, attempting to set this up and I am getting the following errors when choosing my vents.
The vents device handler I am using support these commands. There are others, but these are the ones I figured you would need to be able to utilize.
These are Flair vents. I can provide additional information or logs if needed.
Project seems really cool, excited to see what it can do for my house! Thanks! Ken