willcodeforcats / tekmar-packetserv Goto Github PK
View Code? Open in Web Editor NEWHome Assistant add-on for the Tekmar 482 Gateway
License: MIT License
Home Assistant add-on for the Tekmar 482 Gateway
License: MIT License
It would be great to allow RS232 to Ethernet devices. Like this one. There's a RS232-only version that only costs $25 (I assume it performs just as well as the RS232/RS485/RS422 version I bought).
From what I can tell, the device works great, no caveats. I started on a basic Homebridge plugin for the 482 before thinking to check if something was available for HA (python noob, so I default to JS). I modeled it off the same python toolkit from Tekmar that it looks like you modeled yours after. I think the conversion would be pretty easy. Just open a TCP socket and start reading and writing bytes the way you do now, just to a socket instead of a serial port.
I almost think you should move most of the packetserve code into the main plugin (the tekmar specific stuff: byte stuffing, escaping, packetizing, etc), and just have packetserv essentially be a dumb serial-to-ethernet device like the one I bought above. Users could use packetserve
for non-Tekmar RS232/485 devices, and purchasers of serial-to-ethernet devices could avoid needing to install that add-on entirely. (just a thought)
Back to the main request - It would be great to make this work with 3rd party ethernet-to-serial devices
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.