Andrew; Now all basics seem to be working; Could you post your personal example of your occusim config? The documentation is quite comprehensive but without a complete example from real life (there a bits but not a complete one) a bit tough.
p.s. I copied below in my appdaemon.cfg but get error in the log.
Hi there - check the latest version, it has some new features and a few bugfixes. It also contains a full example in appdaemon.cfg.example - also, if you use the latest version you shouldn’t get the error above - there were some typos in the readme that I have now fixed.
Also, thanks for pointing out the missing upgrade instructions, they are also now in the readme, and look like this:
Updating OccuSim
To update OccuSim after I have released new code, just run the following command to update your copy:
$ git pull origin
Then copy occusim.py to your App directory as in the original installation.
The whole point of scenes is that they contain all that information such as levels or even colors, that is why I use scenes rather than lights. Just set up the scene as you want it in Home Assistant, then use it in occusim.
Generally I do not use a scene when I just have one light I want to change (like bathroom, toilet, hallway). But no issue for me to create them. Just want to understand the logic so I don’t need to keep asking as soon as I starts doing something else then the examples.
Love your work! Many thanks for all the energy you put into this!
This is so weird. First tested only restarting Appdeamon, then a full reboot. Result the same. No errors in error.log but look at below logfile & compare with .cnf. Still reporting office instead of kitchen. How weird is that?
I have an input boolean that is called vacation. I’m assuming that the setting in the cnf file (enable = input_boolean.vacation,on) means the App runs actively if the input Boolean is switched to ‘on’?
What happens if I switch this input Boolean ‘off’; Does the app stop immediately or does it finisch it’s schedule (asking this because I see the ‘planned’ activities in the log)
I’m now only simulating (test=1 in the cnf). I’m assuming that if I set this to 0 it goes ‘live’. Correct?
The input boolean just prevents the callbacks from actually doing anything, the scheduling all occurs as usual so you can see the times dumped in the log, but if it is disabled test mode won’t show you anything. For testing I recommend the following:
That tells you the setting, “on” or “off” for which the simulator is active. In this case I was testing so rather than have the vacation boolean on, I wanted the simulator to be active when the boolean was off.