Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master valve remains on #28

Open
woodgieboodgie opened this issue Sep 9, 2024 · 6 comments
Open

Master valve remains on #28

woodgieboodgie opened this issue Sep 9, 2024 · 6 comments

Comments

@woodgieboodgie
Copy link

Hello,

Reinstalling sprinklerd on new Pi4, its been working fine on old pi4 for yrs.
Issue is the master valve remains on when any zone has completed its cycle. in fact it's on by default when the Pi4 is rebooted.
Schedule works properly, mqtt sees each of the topics but for zone 0 there is always a '1' against it.
Web server works fine too, can manually trigger zones.
Edited permissions on cron per other suggestion posted on this github.
Any suggestions?

aaa

@sfeakes
Copy link
Owner

sfeakes commented Sep 9, 2024

Can you post your config file. Also are you using the binary included in the repo (32bit) or did you compile and are running 64 bit Linux for the Pi4 ?

@woodgieboodgie
Copy link
Author

woodgieboodgie commented Sep 9, 2024 via email

@sfeakes
Copy link
Owner

sfeakes commented Sep 9, 2024

You have master valve set to use GPIO 4, this is often used for serial, i2c & clock. So something else might be using it. Can you try setting it to something else eg (5,6,13,19). No need to rewire, just change the pin and restart. If that works as expected, then move the physical wire over or look at what might be causing the conflict. (/boot/config.txt would be a good place to start).

I’ll compile on x64 and try on a Pi4 when I get chance, and see if I can replicate.

@sfeakes
Copy link
Owner

sfeakes commented Sep 9, 2024

I've just compiled this for x64 and tried on Pi4 running Raspberry OS / Debian Bookworm and all worked as expected.

As above I think you have something else interfering with GPIO4. if you run make gpio_tools you will get some tools that may help you track this down.

@woodgieboodgie
Copy link
Author

Spot on, that did it. :)
Original build was probably x32 and a number of yrs ago and had the Master set to GPIO 4... so is root cause because the underlying changes introduced by x64?

@sfeakes
Copy link
Owner

sfeakes commented Sep 10, 2024

I don’t think it’s x64. In newer versions of raspberry OS they enabled more things by default. So you probably have something in /boot/config.txt that’s enabled and using gpio4. Something that uses serial/i2c or clock would be my guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants