a529987659852 / openwbmqtt

Custom component for home assistant supporting openWB wallbox
35 stars 16 forks source link

feature request: priorityModeEVBattery value #40

Closed RaidObServer closed 1 year ago

RaidObServer commented 1 year ago

Hi Andreas,

thank you very much for this great openwb integration, works perfect. I have one question: Is it possible to add the priorityModeEVBattery value to switch between EV and Storage in PV mode?

openWB Topic: openWB/config/get/pv/priorityModeEVBattery

best regards & many thanks Stefan

ChristophCaina commented 1 year ago

Hi, it would probably be possible to get the state, but probably it's Not possible to Set the Switch - If there's No /set/ topic

a529987659852 commented 1 year ago

Hi Stefan and Christoph, I can include this as a dropdown. However, as Christoph mentioned, I need to know the respective SET topic.

According to https://github.com/snaptec/openWB/blob/58e8d9f802c7c1c4e004a3f705f0304b9b1a8f48/runs/mqttsub.py --> Line 1040-1045, this should be openWB/config/set/pv/priorityModeEVBattery 0 or 1.

Could you please verify this by logging into the MQTT server of the openWB and change the setting from the UI (I cannot test this at the moment).

Thanks Andreas

RaidObServer commented 1 year ago

Hi Andreas and Christoph,

thank you very much for the fast replay. The settopic for this command is exactly the same as in the link:

openWB/config/set/pv/priorityModeEVBattery

value: 0 = Storage (Speicher in german) value: 1 = EV

I published the topic with the values in the mqtt-explorer and in the GUI i see the changes.

Output of the logfile, if i change the state in the GUI: 2022-12-30 19:15:07,604: Topic: openWB/set/system/topicSender, Message: local client uid: sent: openWB/config/set/pv/priorityModeEVBattery 2022-12-30 19:15:07,491: Topic: openWB/config/set/pv/priorityModeEVBattery, Message: 1

best regards & thanks Stefan

a529987659852 commented 1 year ago

Hi Stefan, should be implemented with commit 70d873e and version 0.5.7. Please test and close this FR if everything works as expected.

Guten Rutsch! Andreas

RaidObServer commented 1 year ago

Hi Andreas,

Thanks for the quick implementation, works as expected. Do you have a paypal account, I would like to buy you a beer?

Guten Rutsch und nochmals vielen Dank. Stefan

a529987659852 commented 1 year ago

Hi Sefan, danke, aber keine Einladung erforderlich. Wenn du mich einladen magst, spende den Wert des Biers an eine gemeinnützige Organisation deines Vertrauens.

Gruß Andreas

Am Sa., 31. Dez. 2022 um 14:39 Uhr schrieb RaidObServer < @.***>:

Hi Andreas,

Thanks for the quick implementation, works as expected. Do you have a paypal account, I would like to buy you a beer?

Guten Rutsch und nochmals vielen Dank. Stefan

— Reply to this email directly, view it on GitHub https://github.com/a529987659852/openwbmqtt/issues/40#issuecomment-1368216966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQTMJREDXSM2LKTDMI7Q3KDWQAZQBANCNFSM6AAAAAATMJPBI4 . You are receiving this because you commented.Message ID: @.***>