-
Notifications
You must be signed in to change notification settings - Fork 59
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
Tywatt support #20
Comments
Hello |
Hello, |
Hello, I'm just discovering the code (and python) so there is definitely room for improvement... |
Hi,
Yes, that's the right place. @mrwiwi is the original creator of the project. I forked it few months ago for my own needs and brought it further (docker image, ha addon, continuous integration...). This fork is now the new lead project. @mrwiwi is still part of the developers (actually he is the tydom protocol expert, not me). |
Hi @nels83 Thanks for your contribution 👍. May you create a pull request on this repository? I'll merge it on a feature branch so that anyone can test your feature (personally, I don't have the needed hardware to test it on my end). |
@fmartinou Done ;-) My feature/tywatt branch is a refactor of the first try. It should be complete and follow the tydom2mqtt coding style. |
As a bonus, here is my HA configuration for energy costs (in configuration.yaml, it took me some time to figure out a simple way of defining these):
|
Hi @nels83 , Thanks for the PR! I have no means to test the image by myself because I don't have the related hardware; can you test it, please? Thank you for your contribution! |
Hey @fmartinou, Thanks for the feature branch. However I noticed I did not push the right code in the PR. There's a typo : I used "pull" instead of "poll". Do you mind if I create a new PR with another branch? |
Please create a new PR to the feature/#21 branch ;) |
The image |
Everything works for me. I'm interested by other people's experience ;-) |
I'll perform some tests on my end. |
Hello i'm very interesting with this part of tydom2mqtt, i'm testing tywatt and connection with tydom box crash sometimes 8h, 2 days a need to reboot the tydom box with fmartinou/tydom2mqtt 2.10 no problems. You can integrate other ELEC HOT WATER ? Thank's for you job ;) |
Hello, |
Hello nels ,you can view log attached. I don't have in mqtt ELEC_HEATING, ELEC_HOTWATER, ELEC_OTHER, ELEC_OUTLET but in my deltadore app i have this infomations. i have always need reboot box some times. I'm use tydom2mqtt in local connected in 192.168.X.X. |
Hello netdrg, Indexes are discovered, you have all However entity is sent through MQTT only if there is data. It seems to be the case for Maybe your Tywatt is not connected to You can try I also see Thanks for your help! |
Hello |
Bonjour, |
I've just merged the feature/#21 branch and released it as a new Hope it works well 🤞 . |
Hello |
Tout semble fonctionner, sauf la température qui reste à 0 sur mon tywatt 1000. Y a-t-il un moyen pour trouver le problème ? |
Is it possible to add support for Tywatt ?
I use it with tydom-client and mqtt by hand for now and it works really well (integrated in the new Energy panel!). Only problem is that it needs polling so I don't know if it would be easy for you.
Here is an example of how I use it (no error handling, really quick an dirty and first HA dev so there may be mistakes) :
Discover :
mosquitto_pub -r -h 127.0.0.1 -p 1883 -t "homeassistant/sensor/tydom_power_total/config" -m '{"unique_id": "tydom_power_total", "name": "Total consumption", "unit_of_measurement": "Wh", "device_class": "energy", "state_class": "total_increasing", "state_topic": "homeassistant/sensor/tydom_power_total/state"}'
Get data :
request /devices/XXXX/endpoints/XXXX/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false --username USER --password PASS --hostname IP --command
Update :
mosquitto_pub -r -h 127.0.0.1 -p 1883 -t "homeassistant/sensor/tydom_power_total/state" -m VALUE
You can replace ELEC_TOTAL with ELEC_HEATING, ELEC_COOLING, ELEC_HOTWATER, ELEC_OUTLET, ELEC_OTHER (you can get the list using
request /devices/cmeta
)I don't think
energyHisto
andenergyDistrib
commands would be of any use, howeverenergyInstant
is interesting (using"unit_of_measurement": "VA", "device_class": "current", "state_class": "measurement"
).Thanks for the great software !
The text was updated successfully, but these errors were encountered: