Open StevenLeRoux opened 4 years ago
What hardware do you use to control outlet? Wago PLC or anything else?
A Wago 750-881
Note that while trying to debug this, I've make sure that no DO was actually configured at all for this address so DO_0 was totally unknown from calaos_installer before sending the conf to calaos_server.
I guess that the wago switched to "calaos managed mode" after you loaded the first time your config. Then the adresse mapping was changed from the "fail safe mode" to "calaos mode" and the output state are switched to default value. Actually there is no fix for that. It happens only the first time, because without config calaos_server is not yet connected to the PLC, and the PLC does not know calaos_server, and then is by default in "fail safe mode"...
Hmm the relay behind DO_0 is CLOSED by default which would mean that a default value should have been to not enable the Digital Output right?
Do we have a way to dump the state from/to the Wago PLC? This way we could try to sync the PLC and Calaos so that the failover between Wago and Calaos would be transparent.
I will try to make this more reproducible, but I've stumbled upon a weird behaviour while trying to push my very first config to calaos.
The funny thing is that while toggling DO_0, this had cut the power of the outlet where Calaos was , which led me to quickly face it :)