Do Xiaomi outlets (either plug or wall) not work at all with Hubitat, or will the generic driver work, but it won't support all the features (like power-usage reporting)?
Edit: To answer my own question - Generic Zigbee Driver outlet works, but it doesn't handle power reporting. I see entries in the log when I turn device connected to the outlet on, as expected, but nothing is shown in device's event list.
I managed to get it done that way, thanks!
I tried it earlier, but attributes I got in the list didn't correspond to the Temperature sensor for some reason.
// Determine current time and date in the user-selected date format and clock style
def now = formatDate()
def nowDate = new Date(now).getTime()
// The receipt of any message results in a lastCheckin (heartbeat) event
sendEvent(name: "lastCheckin", value: now, displayed: false)
sendEvent(name: "lastCheckinDate", value: nowDate, displayed: false)
if (description?.startsWith('catchall:')) {
map = parseCatchAllMessage(description)
}
else if (description?.startsWith('read attr -')) {
map = parseReportAttributeMessage(description)
}
else if (description?.startsWith('on/off: ')){
map = parseCustomMessage(description)
}
if (map) {
log.debug "${device.displayName}: Creating event ${map}"
return createEvent(map)
} else
return [:]
// Reverses order of bytes in hex string
def reverseHexString(hexString) {
def reversed = ""
for (int i = hexString.length(); i > 0; i -= 2) {
reversed += hexString.substring(i - 2, i )
}
return reversed
}
// If user's hub timezone is not set, display error messages in log and events log, and set timezone to GMT to avoid errors
if (!(location.timeZone)) {
correctedTimezone = TimeZone.getTimeZone("GMT")
log.error "${device.displayName}: Time Zone not set, so GMT was used. Please set up your location in the SmartThings mobile app."
sendEvent(name: "error", value: "", descriptionText: "ERROR: Time Zone not set, so GMT was used. Please set up your location in the SmartThings mobile app.")
}
else {
correctedTimezone = location.timeZone
}
if (dateformat == "US" || dateformat == "" || dateformat == null) {
return new Date().format("EEE MMM dd yyyy ${timeString}", correctedTimezone)
}
else if (dateformat == "UK") {
return new Date().format("EEE dd MMM yyyy ${timeString}", correctedTimezone)
}
else {
return new Date().format("EEE yyyy MMM dd ${timeString}", correctedTimezone)
}
I've just noticed this error in the logs for 2 of my Aqara Motion Sensors.
Everything is still working OK but I just thought I would report it in case there is a fix needed.
2019-10-26 16:10:03.568 errorjava.lang.NullPointerException: null on line 71 (parse)
EDIT: Actually the devices are not reporting. Probably because I removed a zigbee outlet (it wasn't routing anything) and I turned my hub off for 30 mins so that the outlet disappeared from the routing table. Strange that the motion sensor must be sending info to the hub but not reporting motion. No worries a quick re-pair has done the job.
AQara Smart Door Touch Lock ZigBee Connection For Home Security Anti-Peeping Design Work With Mi Home APP Support IOS Android https://s.click.aliexpress.com/e/FTiIWR48
I have a non-driver related question, but I hope people here have experience - what do you do to tell your buttons apart? I mean not in the app, but physically when you have a couple of them on the desk? I have this memory that I saw pictures of mijia buttons with logo in different colours like red and blue, but I can't find those images online anywhere, so I must have dreamt it
I have a Xiaomi motion sensor that goes active when my curtains open.
Does anyone know if there is a way to temporarily disable the device.
This way I could write a rule to disable the device between certain times.
TIA
How about take different colored Sharpie pens and color in the logos on each?
But do you really have that many different actions you want all on buttons? Each Xiaomi Mijia button can do 6 different button actions!
Maybe this can help someone who is trying to pair these devices.
After I click reset button and led light flash 3 times, my hubitat detected the devices but it was stuck on "Initializing" message. I tried countless times with no success.
Then I copied the Zigbee Id that was above the "initializing" message and I added it to a new virtual device with this zigbee id.
Then I selected the community device driver in the checkbox "type". I saved the device, then I put again my Hubitat in Zigbee discovery mode again, and I clicked again in the reset button. Leds flashed three times and after some seconds led flashed three times again and the devices were finally paired.
That's the only way I found to do it, but maybe there's some easier trick
I have also found that if they get stuck in the initialising state you can sometimes press the restart zigbee pairing and keep pushing the button to wake them up and they pair OK.
More a question for @veeceeoh - the use of the Aqaa vibration sensor for washing machine detection isn't going well. It just isn't sensing enough motion to register.
Is there a way to access the activity level generated? That way I can set the threshold in my rules instead of relying on the sensitivity.
I have one of those. Looking for a use for it, because as you discovered, it’s not very sensitive. The New Samsung SmartThings Multisensor is not expensive and much more sensitive.
However, owning one of the very energy efficient, and smooth running washing machines out there, I’ve come to the conclusion that if you have a running light on your machine, you’ll be hard pressed to find a better solution than the Homeseer HS-FS100-L
Thanks, I might try the Samsung sensor it I can't get access to the activity attribute. Unfortunately the FS100 is just a little bit expensive here in Australia !