softwarecrash / Daly2MQTT

ESP8266 Connector to get Daly / XENES / HI-BMS / BullTron BMS Data into MQTT systems
Other
141 stars 30 forks source link

Editable values over MQTT #86

Closed mobilon0815 closed 1 year ago

mobilon0815 commented 1 year ago

It doesn't matter which DataPoint I use, whether true, false or without a payload, /Device_Control or just / is also sufficient. As soon as I publish something to the topic (default BMS01), the "ChargeFET" goes to false.

checked with: /Device_Control/Pack_DischargeFET /Device_Control/Pack_DischargeFET:true /Device_Control/Pack_DischargeFET:false /Device_Control/Pack_ChargeFET /Device_Control/Pack_ChargeFET:true /Device_Control/Pack_ChargeFET:false /Device_Control/Relay:true /Device_Control /

There is no way to change this again with any publish.

**used Version: V2.2.11 used tool: MQTT-Explorer on WIN11 reproducible**

double checked with: MyMQTT V 2.2.3 on Android same behavior - reproducible

before clicking "Publish"

image

after clicking "Publish"

image

softwarecrash commented 1 year ago

thanks, didt you use the json style or the standart mqtt style? (in settings) please update first to the latest firmware. (not solve the problem, but some changes)

all-solutions commented 1 year ago

You have a thinking error there. Try it like this: image

mobilon0815 commented 1 year ago

before:

image

after:

image

softwarecrash commented 1 year ago

before:

image

after:

image

double check your topic string, you have BMS01//Dev...... but you need BMS01/Dev.....

mobilon0815 commented 1 year ago

I use json style

image

I will update now to 2.2.13 an check again...

mobilon0815 commented 1 year ago

checked again with BMS01/Device_Control/Pack_DischargeFET -> same

derLoosi commented 1 year ago

not quite sure at the moment because i never used json, but i think if you use json you also have to send a json object like {Pack{ChargeFET:true}} but dont nail me on that, i am unable to test that and even not sure if thats correct :)

mobilon0815 commented 1 year ago

updated to 2.2.13

image

nothing happens

image

nothing happens ???? "ChargeFET" is still true but "DischargeFET" too

softwarecrash commented 1 year ago

in the style you try to manipulate the bms it will not work when json is active. the device controll path only active in classic mqtt. i will rework this, so please wait the next days for a fix. the json option switch will be removed.

mobilon0815 commented 1 year ago

downgraded to 2.2.11 and checked like in the brandnew wiki...(JSON...)

image

ChargeFET AND DischargeFET have gone from true to false.

{"Pack": {"DischargeFET": true}} brings DischargeFET back to true (ChargeFET still false)

If you publish without the outer brackets, only the ChargeFET changes (once to false) "Pack": {"DischargeFET": true}

softwarecrash commented 1 year ago

let me repeat

wait for a fix

softwarecrash commented 1 year ago

you can switch off the json in settings to use the device_control path

softwarecrash commented 1 year ago

now with .14 fixed, use the topic paths descripted in the wiki like BMS01/Device_Control/Pack_DischargeFET