Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95445

State of one entity depending on other 2 entities

$
0
0

@ongcaps wrote:

Hi All,

First of all, thank you to this great community. I have HA for 2 years and it is the first time I need to write a post (because all the information is there!)

My set up:

  1. A synology running a docker container with HA and mainly tasmotized sonoffs
  2. I have an electric valve that controls whether I use the hot water coming from the solar energy system or from the water heater. I control that with 2 relays of a sonoff 4CH Pro with tasmota
  3. I have an automation that every time the temperature of the water in the solar system goes below 35 degrees it switches the relay to move the valve and use the boiler (and switches it off after 30 seconds) and if it goes above 35 it switches the other relay to move the valve in the other direction.

My 2 problems

  1. I want to know when I am using the solar or the electric system in a given moment. I thought that I could create a new entity that would capture when each of the relays goes to ON but I do not know if this is possible (or even if it is a good idea)

  2. The automation is triggered every time the sensor updates the temperature. How can I trigger the automation just when the temperature crosses 35 degrees in one or other direction?

Any idea is welcomed. Thank you in advance!

Daniel

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>