Search found 6 matches

by SargeOG
Tue Sep 14, 2021 5:16 pm
Forum: Home Assistant Gardening
Topic: Trying to restore previous switch state after Node-RED restart.
Replies: 2
Views: 3227

Re: Trying to restore previous switch state after Node-RED restart.

LEDG The actual light is turning off. But I must clarify, this happens when I hard reset Home assistant, meaning when I unplug the raspberry and plug it back in, and also whenever I deploy Node-RED. So not when I restart the server. I want to resolve this in case I ever get an electricity shortage,...
by SargeOG
Tue Sep 14, 2021 12:48 pm
Forum: Home Assistant Gardening
Topic: Trying to restore previous switch state after Node-RED restart.
Replies: 2
Views: 3227

Trying to restore previous switch state after Node-RED restart.

Everytime I restart HA or Node-red the switch for the light goes to OFF, even if before restart it was on. This is an issue many of you fine people I believe have resolved. I added this to the node-red settings.js: contextStorage: { default: "memoryOnly", memoryOnly: { module: 'memory' }, file: { mo...
by SargeOG
Thu Feb 18, 2021 7:57 pm
Forum: Home Assistant Gardening
Topic: Trying to add a fertigation dosage slider and schedule
Replies: 9
Views: 1769

Re: Trying to add a fertigation dosage slider and schedule

OMG! Thanks so much LEDG !!! It worked like a charm! Thanks so much, I'm so glad it's working now! :D But I stumbled upon 2 new issues. It's the current time injection, apparently it gives me the time by 2 hours earlier than my actual time. Example: Local time 07:25, injection time: 05:25, what coul...
by SargeOG
Tue Feb 09, 2021 12:59 pm
Forum: Home Assistant Gardening
Topic: Trying to add a fertigation dosage slider and schedule
Replies: 9
Views: 1769

Re: Trying to add a fertigation dosage slider and schedule

I have no real idea of what I am doing really, but here you go... Thank you for answering! [{"id":"6faa0663.1b2b08","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"835eb1c9.186c28","type":"function","z":"6faa0663.1b2b08","name":"Math","func":"newmsg = {};\nvar liters = msg.payload;\...
by SargeOG
Wed Feb 03, 2021 8:59 am
Forum: Home Assistant Gardening
Topic: Trying to add a fertigation dosage slider and schedule
Replies: 9
Views: 1769

Re: Trying to add a fertigation dosage slider and schedule

Yeah I already got a helper (input.number) made to be a slider in liters, attached in node red to a function that converts those liters to seconds. Now I just need to attach that input in seconds in time spent open for the valve when it's scheduled to open.

Any input would be great!
by SargeOG
Tue Feb 02, 2021 1:26 pm
Forum: Home Assistant Gardening
Topic: Trying to add a fertigation dosage slider and schedule
Replies: 9
Views: 1769

Trying to add a fertigation dosage slider and schedule

Hey guys, so what I'm trying to do is to add a fertigation dosage slider that is in liters. I measured 1 liter to be 14 seconds. I managed to make it covert liters to seconds in node red with someone's help. Now when I slide the liters around I get a msg.payload with the exact converted seconds. Whi...