Closed ananyevgv closed 1 week ago
Hello friend, I did not find such tests in the description of the protocol. If I understood correctly, it meant:
beeper: Front panel test
quick_test: Self test
deep_test: Runtime calibration
ten_minutes_test: Simulate power failure
Hello friend! I can't use the switch. Problems:
TYPES = {
CONF_BEEPER: ("A", "OK"),
CONF_QUICK_TEST: ("T", "CT"),
CONF_DEEP_TEST: ("TL", "CT"),
CONF_TEN_MINUTES_TEST: ("T10", "CT"),
}
For more details, see my fork.
@samoswall Do you like to contribute your improvements? :-)
@syssi Yes. I have improved your project. Fixed switches. They're working now. When power is lost or restored, an external command (Q-status flag) is sent to update the status (on_line and on_battery) Now I am adding a command to record the date of battery replacement in ups. I'm going to do a PR now.
Awesome job!
@syssi I will finish the snmp component for your project in a few days. Maybe they should be combined together?
We could mention your SNMP component at the README if you like. I would like to keep this project as simple as possible. :-)
I've merged your improvements to main. Thanks for your great work!
The switches are working?
src/main.cpp: In function 'void setup()': src/main.cpp:3062:9: error: 'class esphome::apc_ups::ApcUps' has no member named 'set_quick_test_switch' ups0->set_quick_test_switch(apc_ups_apcupsswitch);