# Multiple conditions

**URL:** <https://discourse.nodered.org/t/multiple-conditions/69040>\
**Category:** Developing Nodes\
**Created:** [14 October 2022 19:31 UTC](https://discourse.nodered.org/t/multiple-conditions/69040 "2022-10-14T19:31:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmadsen](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@hmadsen](https://discourse.nodered.org/u/hmadsen)\
**Post date:** [14 October 2022 19:31 UTC](https://discourse.nodered.org/t/multiple-conditions/69040/1 "2022-10-14T19:31:43Z")

</div>

So i have a solar system, and i made a simple node where, if the sensor "solar surplus" which shows how much more i produce than the house uses, is above 200 Watts, it turns on, and if it goes below, it turns off. This is for a charger for a kickscooter so that i can plug it in whenever i come home, and it will only charge when i have surplus solar.

But i wanted to add another restriction so that it will not turn on unless the solar system's battery pack is above 80% state of charge.

So essentially it is

Surplus solar above 200 watts AND battery statement of charge above 80% that is to turn it on, and if either falls below, it should turn off.

Right now it is just a state node that is set to 0.2 (kw) and then a Call service node on each output of the state node, that calls for the turning on and off, of the shelly.

Sorry if this is really basic, i am not very good at this yet, but i am still learning.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 December 2022 19:32 UTC](https://discourse.nodered.org/t/multiple-conditions/69040/2 "2022-12-13T19:32:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
