This is a discord issue. It takes a only bit of time before the site will automatically adjust your abilities. Welcome! Check out some of the other threads, and the site will process your trust level even faster.
Please, can the Battery values be rounded (to integer)?
100.0 makes no sense, and that doesn’t look good either…
(Maybe optionally, e.g. for Temperature I can choose the number of digits.)
At the moment I’m not making changes, but adding the Math.round(thePercentage) method would fix it for you.
Thanx a lot for your answer!
round does the trick!
But I don’t wanted to change your driver code when maybe a new one is arriving in the near future…
“Not making changes” - you mean like “never again”?
No, not never again, just trying to avoid changing things since I don’t know what breaks in new versions of HE. This particular change does make sense though. I suppose I could add that for whenever I do push a new version. Next time I update it will be there, so it is safe to make the change manually for now.
Thanx a lot!
Thanks for all of your work on this. i originally posted this on HE and the realised it was your work, its such a shame that the tension exists at all.
Anyway im trying some sonoff products and am having problems with the humidity/ temp sensors. They seem to report about every 5 minutes no matter what changes have occured to the levels.
Im trying to use these to trigger a shower room fan, but by the time the sensor has reported the humidity has already reached 99%. This mornings logs showed a rise from 37% to 99% in one report span. Is there any way to ask the sensor to report as soon as the levels increase/decrease but a certain value as well as the 5 minute reporting, or ask it to report more frequently?
EDIT. I WAS USING HE’S DRIVERS NOT MARKUS’S WHICH WORK JUST FINE!!
I’m using your Sonoff Motion Sensor driver on HE.
With HE’s Hub Mesh utility devices can be linked between hubs.
With the Motion sensor ‘resetToActive’ and ‘resetToInactive’ is exposed.
Unfortunately pushing the resetToActive/resetToInactive button does not replicate the condition across the hubs.
If I amend your code to just use active/inactive it does work OK.
As I’m not a coder I don’t know what is the ‘standard’ or whether it’s what ever you feel.
Just wondering if if should be active/inactive.
I appreciate you are busy on your new project but thought I would ask.
Anyone still using the offset in these drivers?
My assumption is that when I add an offset the reported temp should reflect that offset by reporting a different temp.
I’m using : v22.214.171.1243b with SNZB-02. and the offset does not seem to be working.
When I add a temp offset of 10 deg the temp does not change in the current state, nor does it report a diff temp to other apps.
Am I missing anything?
I don’t even have a hub to test this on, sorry, maybe there’s someone who still develops for that platform who can tell you from looking at the code if something has changed in the platform for that to not work?
Question and don’t know if anyone has suggestions. Got one of the sonoff motion sensors to put at my door to basically ‘ring the doorbell’ when motion is detected, as the delivery drivers don’t seem to do that anymore. As expected, it got triggered a lot based on shadows and such. Decided to pick up a second one to place in a diffferent area to minimize the chance of that happening. Unfortunately the motion sensors have a fairly long ‘active’ time, so they still get triggered quite and inevitably overlap with the other sensor that was triggered earlier. I see this driver doesn’t have a time limiter on it, so does anyone have ideas on how i could possibly have the sensors reset to inactive after a specified period of time (maybe 5 seconds would do it)?
Do you have any Xiaomi or Aqara motion sensors available.
Apparently there is a mod you can do on those (wiring/soldering a couple of terminals together) that changes the device to reset after 5 seconds of motion.
I’ve never done it but others have.
Maybe the mod can be done on a Sonos device but I don’t know.
If you 're doing it in node red you can do it with a rbe node or throttle.
To clarify, you could limit the number of messages and time interval using node red and your current setup so that you can ignore other messages for a certain amount of time after the first trigger. Node-RED is a powerful tool.
…or you can buy the latest model, aqara P1.
It should have an exposed cooldown parameter with values down to 1 second . And its battery (2) last 5 yrs.
Hue motion sensor has a short reset time too.