Configuration of N/C Contacts

I’m using N/C contacts for my limit switches, however, I’m unable to figure out how to configure the yaml config file to allow this. Using “limit_all_pin: gpio.34” I can get the limit to act as a N/O contact when connected to UGS. But using “limit_all_pin: gpio.34:low” to invert the logic results in a bad gpio option. Any clues about how I can rectify this issue would be much appreciated!

Cheers, Darrin

did you solve this? I dont suppose you’ve updated to the latest version?

Ahhh yes - I originally used ChatGPT to create a yaml template file to speed up the configuring process and it inserted a # comment after the limit_al_pin: gpio.34 line and it worked just fine. However, when I changed the line to limit_all_pin: gpio.34:low it started giving the bad gpio option errors. Once the comment was removed the yaml config worked just fine. Moral of the story is don’t use comments at the end of a line and don’t trust GhatGPT. Still tinkering away with the controller, managed to get the modbus comms working to control my Huanyang VFD the other day, so getting close to swapping out the Arduino Uno for the Root Controller.

Cheers,

Darrin