Probably not needed for standard operations, but I have an older HestiaPi 2-relay 110V unit monitoring the temperature and humidity in my server room. Nothing is being controlled, nothing connected to the relays, BUT, I would like it to send me an email if the temperature goes over a certain temperature - can be the HestiaPi’s Max setpoint. Is this possible?
Are you referring to this?
If that’s the one you are talking about you would have to set this up yourself as this is something totally different (in software and hardare) to the way HestiaPi works today and we don’t have access to that any more.
The sensor used is DS18B20. Fairly popular cheap temp sensor among the Pi community.
Here are a few links to point you to the right direction:
or a more generic google search:
Let us know if you get stuck and we may be able to help you.
For completeness, I can provide a rough outline for the v1.1 of HestiaPi Touch and describe how to do it in v1.2 which will be released sometime.
- Install the Mail action under PaperUI -> Add-ons -> Actions
- Configure it as documented at https://www.openhab.org/addons/bindings/mail/ (NOTE: if you are using Gmail and have two-factor authentication enable, you will need to generate an application password.
- Add a Rule to default.rules along the lines of:
rule "Email when temp is above the setpoint" when Item MyTemp changed or Item TempStepoint changed then sendMail("firstname.lastname@example.org", "Temperature Alert!", "Current temperature is " + MyTemp.state + " threshold is " + TempSetpoint.state) end
Dealing with limiting these emails so it’s only send when the temp initially goes over the setpoint and then not again until it drops back below the setpoint is an exercise left to the reader.
Install the Mail binding under PaperUI -> Add-ons -> Bindings, documentation is at https://www.openhab.org/addons/bindings/mail/.
Create an SMTP Thing by going to PaperUI -> Inbox -> + -> Mail Binding -> SMTP Server.
Populate it with the information for your server. Be sure to fill out the Thing ID field with something meaningful (e.g. gmail).
Create the Rule, navigate to PaperUI -> Rules -> + -> New rule.
Under “When…” click + -> select “An Item state changes”. Enter a meaningful name and description and select MyTemp as the Item.
Repeat 5 and select MaxTempSetpoint as the Item.
(items["MyTemp"].floatValue() > items["MaxTempSetpoint"])
actions.get("mail", "mail:smtp:gmail").sendMail("email@example.com", "Temperature Alert!", "Current temperature is " + items["MyTemp"] + " threshold is " + items["TempSetpoint");
NOTE: there might be an option to select “send a text mail” in the list. PaperUI is not able to actually configure the Rule using that at this time so do not select that.
Documenting how to do this was on my todo list anyway. I’ll come and add screen shots and clean this up a bit later in it’s own post/thread.
No, it’s this model:
Thank you for the quick response, though. Looks like rlkoshak has a solution - hope to try it soon.
Fantastic! Thank you so much, hope to try it soon.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.