henne49 / dbus-opendtu

Integrate opendtu and ahoy into Victron Energies Venus OS as a pv inverter
MIT License
119 stars 33 forks source link

Feature request: add Tasmota Devices #13

Closed stxShadow closed 1 year ago

stxShadow commented 1 year ago

Hi ! you asked for some informations yesterday to add tasmota support.

The URL is: http://x.x.x.x/cm?cmnd=status%208 for power informations Complete system informations URL is http://x.x.x.x/cm?cmnd=status%2000

I've attached you to appropriate json outputs of both cases.

Thanks a lot for your work an effort !

Jens

tasmota-json.zip

henne49 commented 1 year ago

I will create a branch and try to add the tasmota, but you would then need to install 2 times the script, once for opendtu and for tasmota.

later on, we could review to add multiple PV Inverter which is anyway a request, but for that I would need a clever solution and a major rework of the overall script.

would that be ok as a start for you?

stxShadow commented 1 year ago

yes ... that will work for me. I own a VenusOS Pi and a Victron Cerbo just for testing purposes (for my YT channel).

Thanks a lot

Jens

henne49 commented 1 year ago

If you install it in a different directory, it should be able to run from the same system no need for a second pi.

@stxShadow did you reference the opendtu script in this video: https://youtu.be/PpjCz33pGkk ?

Thank you for your channel, I learned a lot to setup my victron and pylontechs. The name is easy. Spitzname plus Trikotnummer

stxShadow commented 1 year ago

Yes :D That is my latest video ...... i really had no clue what was ment by "henny49". Thank you for clearing that. If the tasmota integration works, it will be worth a video too.

Jens

PS: i know that we can speak german too .... but this is an international plattform :+1:

henne49 commented 1 year ago

Hi @stxShadow, I have added generic single phase Support for JSON and REST Based devices, even if they have password protection. The Example is based on Tasmota as you had provided, but is generic enough to even fit others.

I will have to include more checks, if Current or Voltage is not available.

Please test and let me know if it works: https://github.com/henne49/dbus-opendtu/tree/Generic-REST-Device

henne49 commented 1 year ago

@stxShadow I have added some more interesting stuff, maybe you are able to test as well

Added Support for Generic Rest Devices

Tested Examples:

All configuration is done via config.ini examples are uncommented

stxShadow commented 1 year ago

Tasmota unauthenticated: works Shelly 1 PM: will test it the next days Shelly Plus 1 PM: sorry .... not owning one

Jens

henne49 commented 1 year ago

The changes are now merged in main and documentation is updated

stxShadow commented 1 year ago

Shelly PM1 : works

Fronius Icon: seem you are right. Aus soon as a fronius inverter is present, all inverters get the fronius icon.