rono007
(Ron Anthony Quinn)
June 25, 2014, 8:51pm
1
Does anyone know of a humidity sensor that works well with SmartThings? I want to turn a humidifier in my basement on and off based on humidity levels.
Ben
(Ben Edwards)
June 25, 2014, 9:16pm
2
The Aeon Multi Sensor has humidity but there are few SmartApps / canned scenarios that take advantage of it.
rono007
(Ron Anthony Quinn)
June 25, 2014, 9:32pm
3
So turning on/off a smart outlet to control a basement humidifier wouldn’t be a doable scenario?
Ben
(Ben Edwards)
June 25, 2014, 11:32pm
4
Yes. Check out this that was just posted minutes ago.
I have the code written, but I am running into a problem simulating. It appears the Aeon only sends humidity like every 3 or 4 hours (annoying to test with)
So when I create a virtual humidity device, it reports its evt.value as 40% and not an unformatted number like 40 so when I try to do any math with it I get an error. According to my real Aeon multi events, the evt.value is properly formatted as a number.
—fixed with Double.parseDouble(evt.value.replace("%", “”)) —
This community rocks
Code updated with requests from your OP. Submitted for review
/**
* Its too humid!
*
* Copyright 2014 Brian Critchlow
* Based on Its too cold code by SmartThings
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
definition(
name: "Humidity Alert!",
namespace: "docwisdom",
author: "Brian Critchlow",
description: "Notify me when the humidity rises above or falls below the given threshold. It will turn on a switch when it rises above the first threshold and off when it falls below the second threshold.",
This file has been truncated. show original
Ive updated your code app has
upper and lower humidity values
over ride switch option
time out after x miunits of not reciving an updated humitity value
/**
* Its too humid!
*
* Copyright 2014 Brian Critchlow
* Based on Its too cold code by SmartThings
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
definition(
name: "Humidity Alert!",
namespace: "docwisdom",
author: "mc - Brian Critchlow",
description: "Notify me when the humidity rises above or falls below the given threshold. It will turn on a switch when it rises above the first threshold and off when it falls below the second threshold.",
This file has been truncated. show original