Replies: 1 comment 2 replies
-
@canton7 Absolutely. It's been on my to-do list for a while to migrate EM to use the Modbus services directly - piggybacking on the great work you've been doing - to improve compatibility, reliability etc. The Modbus service is now lightyears ahead...! EM was my first foray into Python development, and whilst it's stable and functions well there are a lot of things I'd improve given the chance...
As always I'd appreciate any contributions you can make and would be happy to set you as a contributor as with Modbus :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @nathanmarlor,
I'm thinking about the coming winter and possibly needing to make use of foxess_em. Since I use the W610 with UDP that means I can either add UDP support to foxess_em, or...
I was wondering whether it would be easier/better to instead expose an interface from foxess_modbus which other integrations (such as foxess_em) to:
a. Fetch the entity_id of an entity with a particular key (abstracting away the entity_id_prefix stuff)
b. Set charge periods (or maybe they can just call the service, might be easier)
c. Set registers? Maybe this isn't necessary if they can interact with number entities / the charge period service / etc
d. Possibly get notified when an entity changes? You can subscribe to this using hass.
This would be made available in
hass.data
.This means:
Beta Was this translation helpful? Give feedback.
All reactions