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

timed_set_ms is not respected always. #310

Open
1 task done
athanassis opened this issue Feb 23, 2023 · 0 comments
Open
1 task done

timed_set_ms is not respected always. #310

athanassis opened this issue Feb 23, 2023 · 0 comments

Comments

@athanassis
Copy link

Describe the bug
I'm using the timed_set_ms in output pins which drive latching relays. The configured value (100ms) is not always followed by mqtt-io. I observe delays in automatically setting the gpio pin back to its initial state of up to 6s. This causes a buzz sound in the relays which is annoying.
The frequency that the delays are observed is ~2.3% (98 occurrences / 4201 total events). This is from a log file of 1 year period, so I hear the buzz in the relays nearly every ~3.5 days on average.

Expected behavior
The timed_set_ms should be respected in all cases.

Error messages and traceback
Here is a sample from a log showing a delay:

2023-02-20 18:19:42 mqtt_io.server [INFO] Digital output 'corridor_lights_relay' set to False (on)
2023-02-20 18:19:48 mqtt_io.server [INFO] Setting digital output 'corridor_lights_relay' back to its previous value after configured 'timed_set_ms' delay of 100ms
2023-02-20 18:19:48 mqtt_io.server [INFO] Digital output 'corridor_lights_relay' set to True (off)```

Here is a sample from an event working as expected:

2023-02-20 18:48:37 mqtt_io.server [INFO] Digital output 'corridor_lights_relay' set to False (on)
2023-02-20 18:48:37 mqtt_io.server [INFO] Setting digital output 'corridor_lights_relay' back to its previous value after configured 'timed_set_ms' delay of 100ms
2023-02-20 18:48:37 mqtt_io.server [INFO] Digital output 'corridor_lights_relay' set to True (off)

Config

  - name: corridor_lights_relay
    module: kili
    pin: 8
    initial: 'high'
    inverted: True
    timed_set_ms: 100```

Hardware

  • Platform: Raspberry Pi
  • Connected hardware: GPIO is connected to 5V 8 Relay board. The Relays from this board are used to emulate button presses towards latching relays in the electric panel of the house.

System:

  • OS: Raspbian
  • Python version: 3.7.3
  • User you're running as: pi
  • Using a virtualenv?: no

Additional context
I run mqtt-io with Deployment using supervisor

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

No branches or pull requests

1 participant