Skip to content

Homekit session

Homekit session

Hi everyone, Maybe a question for beginners, but is it possible to transfer a variable the next time you run a home automation script? I’m trying to do the following. I have a humidity sensor and a shower fan. This script runs every 2 minutes with a “Homebridge Cron Switch”. When the humidity rises by 2% in 2 minutes, the fan should start. But that’s why I need the moisture from the previous race. When I use a variable it doesn’t work, which makes sense because it’s not a session. With the previous and current value, I can do the calculation and perform it. Is there any way to do this? Thanks Hans