@michlb1982
A couple of things, you put the device to sleep so while it's asleep, it won't respond to the commands to change the relays. Since you are combining relays and sensors, you need to keep the unit awake and find a different way to send the sensor data occasionally. For the relay status, read the comments in the sketch. You are saving the relay state and then reading that on startup. You can eliminate all of that code and just set the relay to off in the setup section.
Cheers
Al
I like those relays. Is that 3 different switched outputs? One thing I always liked about european wall switches is that they give you more room for components. I would like to use a similar type of relay for my in-wall switches, but with the way US single gang wall boxes are, there is a pretty narrow space constraint. I might be able to fit it if I did away with the thermal fuse, but I don't want to give up tat bit of added safety just for that.
@magpern said in MyQTherm - replace IQTherm heating thermostat:
I actually am thinking somewhat in the line of discontinuing mysensors network. It is to much, hacks and tricks, and I forget everything in between sessions.
I gave up more than once, also over period of years. Recently I came back again and decided to focus on the heart of the issue, getting my radios working and once you get over that, it starts to get fun again.
I can respect if you already moved on to something else. I even cheated on MySensors and installed some 433 mhz devices too , just to get something working. You have to keep your interest in HA alive in the meantime. But the reward is great when you get MySensors working.
There are "easier" solutions like Tasmota, 433mhz, etc. but not as customizable as MySensors. MySensors is for when you outgrow those other solutions and need something more custom.
@nagelc said in New Setup for Home Environment Monitoring – Using NRF24L01+, Arduino Pro Mini, and BME280:
bme280
I read somewhere that the temperature sensor on the BME280 is sort of an afterthought. I did a few experiments comparing them to the DHT11/12/22 and found them only a little better. (Take this with a grain of salt, maybe you'll want to do you're own experiments.) I did do a lot of experiments with the DHT's and they really suck. +/-2°C Which turns out to mean +/-2°C offset (component variation) and +/-2°C measurement: +/-4°C from what the temperature actually is. My experience, yours may be better.
Please post your experience with OTA. I haven't tried it on Arduino's but it's awesome on ESP8266. I hesitate with Arduino's because I had some erratic behaviour running Arduino's when pushing the memory limit.
I, too, use the MQTT data transport to Home Assistant (HA) and I find that excellent. Getting data from HA is a bit tricky, but do-able. I have a flow meter and use HA to store the last read; meaning, if there is a power failure, HA sends the last read on Arduino boot. I don't use the EEPROM because that has a spec of 100,000 writes which the meter would do in about a year, thus, necessitating a new Arduino.
I truly appreciate you sharing. Thanks!
-OSD