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

LCD-Control with a trigger #1089

Closed
grux77 opened this issue Sep 4, 2021 · 3 comments
Closed

LCD-Control with a trigger #1089

grux77 opened this issue Sep 4, 2021 · 3 comments
Labels
enhancement Implemented Implemented but may not be thoroughly tested

Comments

@grux77
Copy link

grux77 commented Sep 4, 2021

RPi4
Linux Mycodo 5.10.17-v7l+
Mycodo Version: 8.12.6
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]

Hello Kyle!
I would like to save electricity. I want to turn the backlighting or flashing of my display on and off with a trigger.
If I add Action "LCD:Backlight:On" or other LCD-actions in Setup/Function/Trigger(xxx) I only see devices that are in the old
Setup/LCD area but not in the new Setup/Function/LCD. You can only control the display with "Controller:Activate/Deactivate". But it always stays light.

And I have a suggestion for clarity:
I would suggest moving the LCD-Setup to the "Setup/Output" area.. As a Mycodo beginner you would rather search there than in the "Setup/Functions". I find that a display is more of an output than a function. Just like a camera is an input. Is just an idea of ​​mine.

@kizniche
Copy link
Owner

kizniche commented Sep 5, 2021

Good suggestion. I just committed a feature addition to add the ability to have Actions affect Functions, and the first to be added are the Backlight On/Off Actions. If you are able to upgrade to master, please test and let me know if this works.

@kizniche
Copy link
Owner

kizniche commented Sep 6, 2021

Just committed some fixes and it should now work

@kizniche kizniche added the Implemented Implemented but may not be thoroughly tested label Sep 7, 2021
@grux77
Copy link
Author

grux77 commented Sep 7, 2021

Yes, it works. Tested with Display:Generic LCD 16x2 (I2C) and Trigger:Edge.
So I can turn the backlight on and off with two buttons. I think the trigger now reacts faster than before to the press of a button.
Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Implemented Implemented but may not be thoroughly tested
Projects
None yet
Development

No branches or pull requests

2 participants