home assistant

Author
Discussion

dmsims

6,821 posts

275 months

Thursday 31st October
quotequote all
RizzoTheRat said:
That's more or less what I used to do, but the problem of just using the relative humidity percentage is on a really humid day the background humidity level in the house can be higher than the threshold I've set the fans to turn off at (I live by the coast).

My current setup turns the fans on when the bathroom is 4g/m3 higher than the stairs, and off again when it drops below 2. This seems to work a lot better apart from the slight inaccuracy between the two sensors which means I have to set the trigger a bit higher than I would otherwise.

My initial thought is just do an offset to calibrate one sensor to the other every so often, but I could potentially do it automatically at a time when I'm confident the bathroom should be about the same humidity as the rest of the house.
That blueprint works fine - it uses a derivative (change in humidity)

We are 300 yds from the sea

Trustmeimadoctor

Original Poster:

13,593 posts

163 months

Thursday 31st October
quotequote all
RizzoTheRat said:
That's more or less what I used to do, but the problem of just using the relative humidity percentage is on a really humid day the background humidity level in the house can be higher than the threshold I've set the fans to turn off at (I live by the coast).

My current setup turns the fans on when the bathroom is 4g/m3 higher than the stairs, and off again when it drops below 2. This seems to work a lot better apart from the slight inaccuracy between the two sensors which means I have to set the trigger a bit higher than I would otherwise.

My initial thought is just do an offset to calibrate one sensor to the other every so often, but I could potentially do it automatically at a time when I'm confident the bathroom should be about the same humidity as the rest of the house.
Why not just calibrate the device? If it's the ZigBee ones it has an option for it and I'd guess they all do

ARHarh

4,298 posts

115 months

Thursday 31st October
quotequote all
Trustmeimadoctor said:
RizzoTheRat said:
That's more or less what I used to do, but the problem of just using the relative humidity percentage is on a really humid day the background humidity level in the house can be higher than the threshold I've set the fans to turn off at (I live by the coast).

My current setup turns the fans on when the bathroom is 4g/m3 higher than the stairs, and off again when it drops below 2. This seems to work a lot better apart from the slight inaccuracy between the two sensors which means I have to set the trigger a bit higher than I would otherwise.

My initial thought is just do an offset to calibrate one sensor to the other every so often, but I could potentially do it automatically at a time when I'm confident the bathroom should be about the same humidity as the rest of the house.
Why not just calibrate the device? If it's the ZigBee ones it has an option for it and I'd guess they all do
This is what I have done with my zigbee devices in zigbee2mqtt and esphome, cant see why HA would not allow this in every protocol, as all sensors need it.

RizzoTheRat

26,048 posts

200 months

Thursday 31st October
quotequote all
Trustmeimadoctor said:
Why not just calibrate the device? If it's the ZigBee ones it has an option for it and I'd guess they all do
That's effectively what I'm trying to do, but hadn't realised there was a built in way to do it. I'm using Sonoff SNZB-02's with Z2M, and looking at the compatibility table it does have a "humidity_calibration" value, but how do I use it?


https://www.zigbee2mqtt.io/devices/SNZB-02.html

RizzoTheRat

26,048 posts

200 months

Thursday 31st October
quotequote all
dmsims said:
That blueprint works fine - it uses a derivative (change in humidity)
I failed to spot is the was the derivative, as it mentioned percentage. My old method was to trigger by relative humidity difference, which means setting the upper and lower thresholds, if that's tracking the rate of change of relative humidity it makes more sense.

I'm trying a slightly different approach, my fans are for the whole house (mechanical extraction ventilation) I trigger them on humidity in the bathroom, temperature or humidity in the laundry room, and if the kitchen extractor hood is open or closed, so using the temperature/humidity difference between two locations works well so long as the sensors are reasonably consistant.

ARHarh

4,298 posts

115 months

Thursday 31st October
quotequote all
RizzoTheRat said:
Trustmeimadoctor said:
Why not just calibrate the device? If it's the ZigBee ones it has an option for it and I'd guess they all do
That's effectively what I'm trying to do, but hadn't realised there was a built in way to do it. I'm using Sonoff SNZB-02's with Z2M, and looking at the compatibility table it does have a "humidity_calibration" value, but how do I use it?


https://www.zigbee2mqtt.io/devices/SNZB-02.html
In the z2m interface click on the device then settings (specific) then enter a number in Humidity calibration

RizzoTheRat

26,048 posts

200 months

Thursday 31st October
quotequote all
FFS, that's a bit simpler than I expected, I'll give it a go tonight, thanks

Can you set it to a variable/helper? I'm wondering about setting it up to automatically set itself to match one of the other sensors at 5am or so when I can pretty sure the humidity will have evened out.

Edited by RizzoTheRat on Thursday 31st October 11:29

ARHarh

4,298 posts

115 months

Thursday 31st October
quotequote all
RizzoTheRat said:
FFS, that's a bit simpler than I expected, I'll give it a go tonight, thanks

Can you set it to a variable/helper? I'm wondering about setting it up to automatically set itself to match one of the other sensors at 5am or so when I can pretty sure the humidity will have evened out.

Edited by RizzoTheRat on Thursday 31st October 11:29
Just check the history when you get up in the morning, see what the difference was at 5am. No need to over complicate it.

RizzoTheRat

26,048 posts

200 months

Thursday 31st October
quotequote all
ARHarh said:
No need to over complicate it.
Er...this is the home assistant thread... hehe

Trustmeimadoctor

Original Poster:

13,593 posts

163 months

Thursday 31st October
quotequote all
RizzoTheRat said:
FFS, that's a bit simpler than I expected, I'll give it a go tonight, thanks

Can you set it to a variable/helper? I'm wondering about setting it up to automatically set itself to match one of the other sensors at 5am or so when I can pretty sure the humidity will have evened out.

Edited by RizzoTheRat on Thursday 31st October 11:29
Yeah you were going a bit ott wink


Jambo85

3,406 posts

96 months

Wednesday 6th November
quotequote all
New to HA, takes a little while to get to grips with it doesn't it...

Is anyone familiar with installing Python packages? I've got the HA terminal available and have been able to install most things via apk, inlcuding pip I think. But I cannot for the life of me get dateutil.parser working. Terminal says:
~ pip3 install python-dateutil       
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Requirement already satisfied: python-dateutil in /usr/lib/python3.12/site-packages (2.9.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.12/site-packages (from python-dateutil) (1.16.0)


Yet when loading my script it says this requirement isn't met.. I only know enough Python to be dangerous, as may be apparent..

Comacchio said:
I tried to set up the Waste Collection Schedule from HACS with my local council but cant seem to get that working at all.
I got this working last night, are you still struggling? I was a little gutted to see this already existed as I built a screen scraping python script to do it biggrin


wombleh

1,926 posts

130 months

Wednesday 6th November
quotequote all
It might be that you're running that command as a "normal" user, in which case pip just puts the libraries in that one users home directory. You could try "sudo pip3 install python-dateutil" which should run it as root and make it available to everyone.

outnumbered

4,391 posts

242 months

Wednesday 6th November
quotequote all
Jambo85 said:
New to HA, takes a little while to get to grips with it doesn't it...

Is anyone familiar with installing Python packages? I've got the HA terminal available and have been able to install most things via apk, inlcuding pip I think. But I cannot for the life of me get dateutil.parser working. Terminal says:
~ pip3 install python-dateutil       
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Requirement already satisfied: python-dateutil in /usr/lib/python3.12/site-packages (2.9.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.12/site-packages (from python-dateutil) (1.16.0)


Yet when loading my script it says this requirement isn't met.. I only know enough Python to be dangerous, as may be apparent..

Comacchio said:
I tried to set up the Waste Collection Schedule from HACS with my local council but cant seem to get that working at all.
I got this working last night, are you still struggling? I was a little gutted to see this already existed as I built a screen scraping python script to do it biggrin
Are you using HAOS standalone on a Raspberry PI? In that environment, you might need to use docker to get yourself a shell in the container that is running HA before installing anything. Certainly with SSH access, if you just install a package in the container that the terminal initially lands you in, HA itself can't see it.

Jambo85

3,406 posts

96 months

Wednesday 6th November
quotequote all
Thanks both. Unfortunately sudo doesn’t change the outcome. I’m running it on an HP T630 with the generic X86 64 install, so I don’t think its in a different container but happy to be corrected?

HantsRat

2,384 posts

116 months

Tuesday 19th November
quotequote all
Only recently got into Home Assistant and have now hardwired in a tablet to the mains for a hallway dashboard. Mrs and everyone that comes round comments on how cool it is.

So i've decided to get a 2nd one for upstairs haha! Currently using a Lenovo M10 tablet. Great little things and only £99 as 45% off - https://amzn.to/3UWwiyq

I then hardwire them to the mains use use this Sonoff relay to control power and charging of the tablet (Turn off at 80%m turn on at 20%) - https://amzn.to/3UZd8Yp

Definitely looking forward to going deeper down the rabbit hole with this HA stuff!


RizzoTheRat

26,048 posts

200 months

Friday 29th November
quotequote all
I tried to change my Zigbee channel the other night (default when I set up was 11), however when I change it, Z2M refuses to load because the configuration isn't the same as the backup.

Where is the backup file stored? I have a code editor in HA but it's not showing any kind of backup file under Z2M.

Also I've seen a few posts saying channel 26 can be a problem and lots of people use 25, anyone know any reason not to use 26?

ARHarh

4,298 posts

115 months

Friday 29th November
quotequote all
RizzoTheRat said:
I tried to change my Zigbee channel the other night (default when I set up was 11), however when I change it, Z2M refuses to load because the configuration isn't the same as the backup.

Where is the backup file stored? I have a code editor in HA but it's not showing any kind of backup file under Z2M.

Also I've seen a few posts saying channel 26 can be a problem and lots of people use 25, anyone know any reason not to use 26?
Have you seen this about channels?

https://www.metageek.com/training/resources/zigbee...

ARHarh

4,298 posts

115 months

Friday 29th November
quotequote all
RizzoTheRat said:
I tried to change my Zigbee channel the other night (default when I set up was 11), however when I change it, Z2M refuses to load because the configuration isn't the same as the backup.

Where is the backup file stored? I have a code editor in HA but it's not showing any kind of backup file under Z2M.

Also I've seen a few posts saying channel 26 can be a problem and lots of people use 25, anyone know any reason not to use 26?
Is the backup in /config/zigbee2mqtt ?

RizzoTheRat

26,048 posts

200 months

Friday 29th November
quotequote all
I've certainly seen similar ones, that's why I want to move up to 25 or 26. That article says some devices don't support 26 but no idea how old it is, most (maybe all) of my devices are Zigbee 3.0 so no idea if that's still a problem.

Annoyingly my mesh wifi (Deco) doesn't let me specify the channel so I can't keep them away from the Zigbee channel


Would my code editor only be showing me the main files and not the backups? What's the best way to access the files otherwise? I'm running HA in a VM on a Synology NAS if that makes any difference

Trustmeimadoctor

Original Poster:

13,593 posts

163 months

Friday 29th November
quotequote all
i really should read the manual i just found the helpers menu biggrin

now i have easy to see min max and average room temps yay biggrin