bbqkees / ems-esp-domoticz-plugin

Domoticz plugin for the EMS Wi-Fi Gateway with Proddy's EMS-ESP firmware
MIT License
7 stars 8 forks source link

[Question] Additional devices from payload into Domotics plugin #4

Closed kkberg closed 4 years ago

kkberg commented 4 years ago

Hello, is there a special procedure to put more values from payload, like wWStarts and burnStarts, into the Domotics plugin?

Thank you

bbqkees commented 4 years ago

I've added all missing boiler parameters to the plugin (dev branch). Can you test the dev branch to see if everything is there?

kkberg commented 4 years ago

Good morning, I'm just testing it. Thank you very much for your help.

kkberg commented 4 years ago

Okay, plugin works and values are there. I've to dig arround with decimals of the values and units which domotics is using. I'm new since yesterday in domotics so I'll find it out.
Thank you very much for your great service.

PS: Because of time between screenshots, values are newer in the MQTT one. But you can see that there is a gap between MQTT and Domotics values. Any Idea? d113 d112

bbqkees commented 4 years ago

Can you set the plugin debugging to 'Normal' and then check in Domoticz-log what is received? Maybe I am passing the wrong (type of) values somewhere.

kkberg commented 4 years ago

2020-01-07 14:34:17.718 (Heizung) wWHeat: State: off 2020-01-07 14:34:17.718 (Heizung - Boiler warm water heating) Updating device from 0:'off' to have values 0:'off'. 2020-01-07 14:34:17.722 (Heizung) wWCirc: State: off 2020-01-07 14:34:17.722 (Heizung - Boiler warm water circulation) Updating device from 0:'off' to have values 0:'off'. 2020-01-07 14:34:17.726 (Heizung) ServiceCode: Text: -H 2020-01-07 14:34:17.726 (Heizung - Boiler Service code) Updating device from 1:'-H' to have values 1:'-H'. 2020-01-07 14:34:17.729 (Heizung) ServiceCodeNumber: Text: 200 2020-01-07 14:34:17.729 (Heizung - Boiler Service code number) Updating device from 1:'200' to have values 1:'200'. 2020-01-07 14:34:17.732 (Heizung) wWStarts: 1256 2020-01-07 14:34:17.733 (Heizung - ww starts) Updating device from 0:'414480' to have values 0:'1256'. 2020-01-07 14:34:17.736 (Heizung) wWWorkM: 22964 2020-01-07 14:34:17.736 (Heizung - ww work minutes) Updating device from 0:'7578120' to have values 0:'22964'. 2020-01-07 14:34:17.739 (Heizung) UBAuptime: 347669

d114

kkberg commented 4 years ago

d116 2020-01-07 14:41:47.708 (Heizung - Boiler warm water flow) Updating device from 1:'0' to have values 1:'0'. 2020-01-07 14:41:47.709 (Heizung) wWCircPump: Percentage: 255 2020-01-07 14:41:47.709 (Heizung - ww pump modulation) Updating device from 1:'255' to have values 1:'255'. 2020-01-07 14:41:47.710 (Heizung) pump_mod_max: Percentage: 100 2020-01-07 14:41:47.710 (Heizung - pump modulation max) Updating device from 1:'100' to have values 1:'100'. 2020-01-07 14:41:47.712 (Heizung) pump_mod_min: Percentage: 10 2020-01-07 14:41:47.712 (Heizung - pump modulation min) Updating device from 1:'10' to have values 1:'10'. 2020-01-07 14:41:47.713 (Heizung) burnGas: State: on 2020-01-07 14:41:47.713 (Heizung - Boiler gas) Updating device from 1:'on' to have values 1:'on'. 2020-01-07 14:41:47.719 (Heizung) fanWork: State: on 2020-01-07 14:41:47.719 (Heizung - Boiler fan) Updating device from 1:'on' to have values 1:'on'. 2020-01-07 14:41:47.724 (Heizung) ignWork: State: off 2020-01-07 14:41:47.724 (Heizung - Boiler ingnition) Updating device from 0:'off' to have values 0:'off'. 2020-01-07 14:41:47.728 (Heizung) heatPmp: State: on 2020-01-07 14:41:47.728 (Heizung - Boiler heating pump) Updating device from 1:'on' to have values 1:'on'. 2020-01-07 14:41:47.734 (Heizung) wWActivated: State: on 2020-01-07 14:41:47.734 (Heizung - Boiler warm water) Updating device from 1:'on' to have values 1:'on'. 2020-01-07 14:41:47.738 (Heizung) wWHeat: State: off 2020-01-07 14:41:47.739 (Heizung - Boiler warm water heating) Updating device from 0:'off' to have values 0:'off'. 2020-01-07 14:41:47.744 (Heizung) wWCirc: State: off 2020-01-07 14:41:47.744 (Heizung - Boiler warm water circulation) Updating device from 0:'off' to have values 0:'off'. 2020-01-07 14:41:47.749 (Heizung) ServiceCode: Text: -H 2020-01-07 14:41:47.749 (Heizung - Boiler Service code) Updating device from 1:'-H' to have values 1:'-H'. 2020-01-07 14:41:47.754 (Heizung) ServiceCodeNumber: Text: 200 2020-01-07 14:41:47.754 (Heizung - Boiler Service code number) Updating device from 1:'200' to have values 1:'200'. 2020-01-07 14:41:47.758 (Heizung) wWStarts: 1256 2020-01-07 14:41:47.758 (Heizung - ww starts) Updating device from 0:'452160' to have values 0:'1256'. 2020-01-07 14:41:47.763 (Heizung) wWWorkM: 22964 2020-01-07 14:41:47.763 (Heizung - ww work minutes) Updating device from 0:'8267040' to have values 0:'22964'. 2020-01-07 14:41:47.767 (Heizung) UBAuptime: 347676 2020-01-07 14:41:47.767 (Heizung - Boiler UBA uptime) Updating device from 0:'125147250' to have values 0:'347676'. 2020-01-07 14:41:47.771 (Heizung) burnStarts: 2897 2020-01-07 14:41:47.771 (Heizung - boiler burner starts) Updating device from 0:'1042747' to have values 0:'2897'. 2020-01-07 14:41:47.775 (Heizung) burnWorkMin: 78351 2020-01-07 14:41:47.775 (Heizung - boiler burner working minutes) Updating device from 0:'28192870' to have values 0:'78351'. 2020-01-07 14:41:47.780 (Heizung) heatWorkMin: 55387 2020-01-07 14:41:47.780 (Heizung - boiler heating working minutes) Updating device from 0:'19925830' to have values 0:'55387'.

d114#5

bbqkees commented 4 years ago

I think I used the wrong type of counter. I used a type 243/28 counter which is an incremental counter. I should have used 113/0 which is a regular counter.

The incremental counter adds the value you send to the previous value. So each MQTT update 1256 is added to the total.

Will try to make a fix this evening.

bbqkees commented 4 years ago

Counters were of the wrong type. Used incremental counters at first. Remove the devices 32:wWStarts, 33:wWWorkM, 34:UBAuptime, 35:burnStarts, 36:burnWorkMin, 37:heatWorkMin. Then update the plugin and restart Domoticz.

kkberg commented 4 years ago

Now numbers are logical to submitted values. Thank you very much.

bbqkees commented 4 years ago

Ok great. I tested it here as well and it works fine.