gwww / upb-lib Goto Github PK
View Code? Open in Web Editor NEWUniversal Powerline Bus library - interacts with UPB PIMs
License: MIT License
Universal Powerline Bus library - interacts with UPB PIMs
License: MIT License
It would be nice if releases appeared on https://github.com/gwww/upb-lib/releases.
When using a TCP connection to the PIM-IP from Pulseworx, the connection code always schedules a heartbeat check every 90 seconds. That works when using ser2tcp, but with such a direct connection the PIM does not provide any heartbeat traffic, so upb_lib constantly closes, reopens, and scans the whole network to assess state again every 90 seconds.
Things are even worse in Home Assistant’s UPB integration which uses added callbacks on the reconnection to establish link and scene integration each reconnection cycle.
Suggestion: allow heartbeat time to be overridden with a configuration option to the UpbPim() class. Or add it as a parsable flag on the TCP url, something like tcp://1.2.3.4[:port][?heartbeat_time=xxx[,name=val]*].
A tracking issue for the work suggested in home-assistant/core#65487.
At high-level, the plan would be to detect the presence of certain repeater devices in the UPE file, and use this information to automatically have the library set tx_count=2.
@gwww Any specific implementation advise before I start working on this?
Thanks for your support of Home Assistant!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.