tydom2mqtt icon indicating copy to clipboard operation
tydom2mqtt copied to clipboard

Fix fmartinou/tydom2mqtt#68 : changed name for energyDistrib conso sensors

Open arnodu opened this issue 2 years ago • 1 comments

energyDistrib sensors added in #38 have the same name as the preexisting energyIndex sensors causing #68 . energyDistrib represent yearly consumptions and energyIndex total consumption.

I added _yearly to the name of the sensor when updated from an energyDistrib request. I kept the other sensors the same to avoid messing up the statistics for the energy panel.

I hope it won't break things for people using energyDistrib (@gus8313 ?)

2023-01-07 19:40:05,329 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:40:47,337 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:40:47,338 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyInstant&unit=ELEC_A&reset=false
2023-01-07 19:40:47,957 - sensors - INFO - Sensor created / updated : ELEC_A_tydom__Tywatt 200
2023-01-07 19:40:47,957 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:41:29,960 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:41:29,961 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2023-01-07 19:41:30,145 - sensors - INFO - Sensor created / updated : ELEC_TOTAL_tydom__Tywatt 1484170
2023-01-07 19:41:30,146 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:42:12,150 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:42:12,151 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2023-01-07 19:42:12,332 - sensors - INFO - Sensor created / updated : ELEC_HEATING_tydom__Tywatt 458248
2023-01-07 19:42:12,332 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:42:54,336 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:42:54,337 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2023-01-07 19:42:54,531 - sensors - INFO - Sensor created / updated : ELEC_COOLING_tydom__Tywatt 0
2023-01-07 19:42:54,531 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:43:36,537 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:43:36,538 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyIndex&dest=ELEC_HOTWATER&reset=false
2023-01-07 19:43:36,731 - sensors - INFO - Sensor created / updated : ELEC_HOTWATER_tydom__Tywatt 320575
2023-01-07 19:43:36,731 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:44:18,732 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:44:18,733 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2023-01-07 19:44:18,919 - sensors - INFO - Sensor created / updated : ELEC_OUTLET_tydom__Tywatt 215451
2023-01-07 19:44:18,919 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:45:00,923 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:45:00,923 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2023-01-07 19:45:01,104 - sensors - INFO - Sensor created / updated : ELEC_OTHER_tydom__Tywatt 489896
2023-01-07 19:45:01,104 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2023-01-07 19:45:43,105 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2023-01-07 19:45:43,105 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/1669313787/endpoints/1669313787/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2023-01-07 19:45:43,294 - sensors - INFO - Sensor created / updated : ELEC_HEATING_yearly_tydom__Tywatt 28509
2023-01-07 19:45:43,294 - sensors - INFO - Sensor created / updated : ELEC_HOTWATER_yearly_tydom__Tywatt 52828
2023-01-07 19:45:43,295 - sensors - INFO - Sensor created / updated : ELEC_OUTLET_yearly_tydom__Tywatt 16332
2023-01-07 19:45:43,295 - sensors - INFO - Sensor created / updated : ELEC_OTHER_yearly_tydom__Tywatt 37784

arnodu avatar Jan 07 '23 19:01 arnodu

Hello,

How Can i use this fix on haos Addon ? If i modify the file in thé contenair and restart it i lose the configuration.

Haos probably remove and create it.

Regards,

Romain

Neocide avatar Feb 07 '23 05:02 Neocide

I don't have the issue anymore on v3.4.3, maybe i'll give an update next January if it comes back next year.

arnodu avatar Jun 14 '24 13:06 arnodu