Problem with setflow

Hi,
I would like to retrieve the value of the "set flow.index8" node in the "set flow.index_bleu_hp_start_hour" node but this is not the case as shown in the debug window.

Are those two flows in the same tab in the editor?

yes in the same tab.

If that is not the issue, it might help if you post the flow (via export).

I started by testing with the 8 HP BLUE tariff because it is the one that is currently applicable during the day and therefore the one whose index is increasing.

[{"id":"419022682c38215a","type":"tab","label":"TIC","disabled":false,"info":"","env":[]},{"id":"5f5eab9cb8b1247a","type":"knxUltimate","z":"419022682c38215a","server":"e91643e.d9013c","topic":"9/7/0","outputtopic":"","dpt":"235.001","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"9/7/23 Index compteur Elec TIC","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":210,"y":180,"wires":[["c15ea52964cd9adf"]]},{"id":"f1b90be46625db5e","type":"debug","z":"419022682c38215a","name":"HC BLEU (5)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1070,"y":40,"wires":[]},{"id":"c15ea52964cd9adf","type":"switch","z":"419022682c38215a","name":"","property":"payload.tariff","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":290,"y":300,"wires":[["c0e02bdaf8078bfc"],["3b1751da6233f711"],["6b1b6e09526bb465"],["270eb7aba69559b9"],["cb37926e35629907"],["66daf97979f8c794"]]},{"id":"c0e02bdaf8078bfc","type":"change","z":"419022682c38215a","name":"index + tarif 5 HC BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":40,"wires":[["eec97081b7d8186e"]]},{"id":"3b1751da6233f711","type":"change","z":"419022682c38215a","name":"index + tarif 6  HC BLANC","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":80,"wires":[["b483e63260bd8c11"]]},{"id":"6b1b6e09526bb465","type":"change","z":"419022682c38215a","name":"index + tarif 7  HC ROUGE","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":120,"wires":[["a0c52c9b9e37082a"]]},{"id":"f8bd25d16b5665c5","type":"debug","z":"419022682c38215a","name":"HC BLANC (6)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":140,"wires":[]},{"id":"5994f8d0d7e447db","type":"debug","z":"419022682c38215a","name":"HC ROUGE (7)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":240,"wires":[]},{"id":"eec97081b7d8186e","type":"change","z":"419022682c38215a","name":"Index_bleu_hc","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":40,"wires":[["f1b90be46625db5e","b0c0d40ba33f56b2"]]},{"id":"b483e63260bd8c11","type":"change","z":"419022682c38215a","name":"Index_blanc_hc","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":80,"wires":[["f8bd25d16b5665c5","aad444d57991a231"]]},{"id":"a0c52c9b9e37082a","type":"change","z":"419022682c38215a","name":"Index_rouge_hc","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":120,"wires":[["5994f8d0d7e447db","c70f3bd2aa6f3ad4"]]},{"id":"270eb7aba69559b9","type":"change","z":"419022682c38215a","name":"index + tarif 8  HP BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":340,"wires":[["e8f0c74e281cd862"]]},{"id":"3caf646bb3258b9c","type":"debug","z":"419022682c38215a","name":"HP BLEU (8)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1130,"y":340,"wires":[]},{"id":"e8f0c74e281cd862","type":"change","z":"419022682c38215a","name":"index_bleu_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":340,"wires":[["041c1aa22fecd71a"]]},{"id":"cb37926e35629907","type":"change","z":"419022682c38215a","name":"index + tarif 9 HP BLANC","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":520,"wires":[["8720f0d15a0b5f21"]]},{"id":"bfd641d6c71093fb","type":"debug","z":"419022682c38215a","name":"HP BLANC (9)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":460,"wires":[]},{"id":"8720f0d15a0b5f21","type":"change","z":"419022682c38215a","name":"Index_blanc_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":520,"wires":[["bfd641d6c71093fb","b4df7e0f49cd2267"]]},{"id":"66daf97979f8c794","type":"change","z":"419022682c38215a","name":"index + tarif 10  HP ROUGE","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":560,"wires":[["c42d0882d5d5820c"]]},{"id":"0673b544436c922e","type":"debug","z":"419022682c38215a","name":"HP ROUGE (10)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":560,"wires":[]},{"id":"c42d0882d5d5820c","type":"change","z":"419022682c38215a","name":"Index_rouge_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":560,"wires":[["0673b544436c922e","85b23d5223dae2c6"]]},{"id":"46024066637c09b3","type":"ha-sensor","z":"419022682c38215a","name":"index_bleu_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1140,"y":380,"wires":[[]]},{"id":"b4df7e0f49cd2267","type":"ha-sensor","z":"419022682c38215a","name":"index_blanc_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":500,"wires":[[]]},{"id":"85b23d5223dae2c6","type":"ha-sensor","z":"419022682c38215a","name":"index_rouge_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":600,"wires":[[]]},{"id":"b0c0d40ba33f56b2","type":"ha-sensor","z":"419022682c38215a","name":"index_bleu_hc","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":80,"wires":[[]]},{"id":"aad444d57991a231","type":"ha-sensor","z":"419022682c38215a","name":"index_blanc_hc","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":180,"wires":[[]]},{"id":"c70f3bd2aa6f3ad4","type":"ha-sensor","z":"419022682c38215a","name":"index_rouge_hc","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1092,"y":280,"wires":[[]]},{"id":"ce3b5bcbaf17ec19","type":"switch","z":"419022682c38215a","name":"period select","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"hour","vt":"str"},{"t":"eq","v":"day","vt":"str"},{"t":"eq","v":"month","vt":"str"},{"t":"eq","v":"year","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":390,"y":760,"wires":[["fc4e1ae6fb8dd561"],["18ea1f04b361a2b1"],["b2918c4083862901"],["5cdf624e7155034a"]]},{"id":"fc4e1ae6fb8dd561","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_bleu_hp_start_hour","pt":"flow","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":700,"wires":[["30aab546517815a2"]]},{"id":"b2918c4083862901","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_wh_start_month","pt":"flow","to":"index_wh","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":940,"wires":[["9874be8266ac0917"]]},{"id":"18ea1f04b361a2b1","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_bleu_hp_start_day","pt":"flow","to":"index_wh","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":900,"wires":[["5105d81231fb5436"]]},{"id":"5105d81231fb5436","type":"debug","z":"419022682c38215a","name":"Index start day","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":980,"y":900,"wires":[]},{"id":"9874be8266ac0917","type":"debug","z":"419022682c38215a","name":"Index start month","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":940,"wires":[]},{"id":"5cdf624e7155034a","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_wh_start_year","pt":"flow","to":"index_wh","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":980,"wires":[["96fb6e40428890a4"]]},{"id":"96fb6e40428890a4","type":"debug","z":"419022682c38215a","name":"Index start year","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":980,"y":980,"wires":[]},{"id":"d7ff051d95a0d7fa","type":"inject","z":"419022682c38215a","name":"Manual init","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":640,"wires":[["fc4e1ae6fb8dd561","18ea1f04b361a2b1","b2918c4083862901","5cdf624e7155034a"]]},{"id":"801689206e09cd8b","type":"cronplus","z":"419022682c38215a","name":"","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"hour","topic":"hour","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0  * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"day","topic":"day","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 * * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"month","topic":"month","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 1 * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"year","topic":"year","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 1 1 ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":140,"y":760,"wires":[["ce3b5bcbaf17ec19"]]},{"id":"30aab546517815a2","type":"debug","z":"419022682c38215a","name":"index start bleu hp hour","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1030,"y":700,"wires":[]},{"id":"041c1aa22fecd71a","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index8","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":340,"wires":[["3caf646bb3258b9c","46024066637c09b3"]]},{"id":"e91643e.d9013c","type":"knxUltimate-config","host":"192.168.1.100","port":"3671","physAddr":"15.15.22","hostProtocol":"TunnelUDP","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","statusDisplayLastUpdate":true,"statusDisplayDeviceNameWhenALL":true,"statusDisplayDataPoint":false,"stopETSImportIfNoDatapoint":"skip","loglevel":"error","name":"Passerelle IP-KNX","localEchoInTunneling":true,"delaybetweentelegrams":"40","delaybetweentelegramsfurtherdelayREAD":"1","ignoreTelegramsWithRepeatedFlag":false},{"id":"45eb437e4aea0fcd","type":"ha-entity-config","server":"f462add6.8e0bc","deviceConfig":"","name":"","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"index_bleu_hp"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"entity_picture","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"f462add6.8e0bc","type":"server","name":"Home Assistant","addon":true}]

There are some issues two are fixed in below example:

[{"id":"c15ea52964cd9adf","type":"switch","z":"419022682c38215a","name":"","property":"payload.tariff","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":290,"y":300,"wires":[[],[],[],["270eb7aba69559b9"],[],[]]},{"id":"270eb7aba69559b9","type":"change","z":"419022682c38215a","name":"index + tarif 8  HP BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":340,"wires":[["e8f0c74e281cd862"]]},{"id":"3caf646bb3258b9c","type":"debug","z":"419022682c38215a","name":"HP BLEU (8)","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1130,"y":340,"wires":[]},{"id":"e8f0c74e281cd862","type":"change","z":"419022682c38215a","name":"CHANGED: index_bleu_hp","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"activeElectricalEnergy\":msg.payload}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":400,"wires":[["041c1aa22fecd71a"]]},{"id":"ce3b5bcbaf17ec19","type":"switch","z":"419022682c38215a","name":"period select","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"hour","vt":"str"},{"t":"eq","v":"day","vt":"str"},{"t":"eq","v":"month","vt":"str"},{"t":"eq","v":"year","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":390,"y":760,"wires":[["fc4e1ae6fb8dd561"],[],[],[]]},{"id":"fc4e1ae6fb8dd561","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_bleu_hp_start_hour","pt":"flow","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":700,"wires":[["fd33364be5b44291"]]},{"id":"d7ff051d95a0d7fa","type":"inject","z":"419022682c38215a","name":"Manual init","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":640,"wires":[["fc4e1ae6fb8dd561"]]},{"id":"30aab546517815a2","type":"debug","z":"419022682c38215a","name":"index start bleu hp hour","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1030,"y":700,"wires":[]},{"id":"041c1aa22fecd71a","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index8","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":340,"wires":[["3caf646bb3258b9c"]]},{"id":"6a33b9da742d2b2e","type":"inject","z":"419022682c38215a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":440,"wires":[["270eb7aba69559b9"]]},{"id":"1c05b0a6e5403ba1","type":"change","z":"419022682c38215a","name":"index_bleu_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":340,"wires":[[]]},{"id":"fd33364be5b44291","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":910,"y":760,"wires":[["30aab546517815a2"]]}]

ISSUE 1

The marked node tries to move payload to an attribute of payload which does not work because payload is a string which does not have attributes.

You can do it like this

ISSUE 2 (this is what I meant above)

In the marked change node you do


but your debug node shows msg.payload.

Added note to copy flow.index8into msg.payload.

1 Like

Thank you so much ! :
I would like at the "index start blue hp hour" level to retrieve only the activeElectricalEnergy value (without the tariff) but the node that I added does not work.

[{"id":"419022682c38215a","type":"tab","label":"TIC","disabled":false,"info":"","env":[]},{"id":"5f5eab9cb8b1247a","type":"knxUltimate","z":"419022682c38215a","server":"e91643e.d9013c","topic":"9/7/0","outputtopic":"","dpt":"235.001","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"9/7/23 Index compteur Elec TIC","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":210,"y":180,"wires":[["c15ea52964cd9adf"]]},{"id":"f1b90be46625db5e","type":"debug","z":"419022682c38215a","name":"HC BLEU (5)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1070,"y":40,"wires":[]},{"id":"c15ea52964cd9adf","type":"switch","z":"419022682c38215a","name":"","property":"payload.tariff","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":290,"y":300,"wires":[["c0e02bdaf8078bfc"],["3b1751da6233f711"],["6b1b6e09526bb465"],["270eb7aba69559b9"],["cb37926e35629907"],["66daf97979f8c794"]]},{"id":"c0e02bdaf8078bfc","type":"change","z":"419022682c38215a","name":"index + tarif 5 HC BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":40,"wires":[["eec97081b7d8186e"]]},{"id":"3b1751da6233f711","type":"change","z":"419022682c38215a","name":"index + tarif 6  HC BLANC","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":80,"wires":[["b483e63260bd8c11"]]},{"id":"6b1b6e09526bb465","type":"change","z":"419022682c38215a","name":"index + tarif 7  HC ROUGE","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":120,"wires":[["a0c52c9b9e37082a"]]},{"id":"f8bd25d16b5665c5","type":"debug","z":"419022682c38215a","name":"HC BLANC (6)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":140,"wires":[]},{"id":"5994f8d0d7e447db","type":"debug","z":"419022682c38215a","name":"HC ROUGE (7)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":240,"wires":[]},{"id":"eec97081b7d8186e","type":"change","z":"419022682c38215a","name":"Index_bleu_hc","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":40,"wires":[["f1b90be46625db5e","b0c0d40ba33f56b2"]]},{"id":"b483e63260bd8c11","type":"change","z":"419022682c38215a","name":"Index_blanc_hc","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":80,"wires":[["f8bd25d16b5665c5","aad444d57991a231"]]},{"id":"a0c52c9b9e37082a","type":"change","z":"419022682c38215a","name":"Index_rouge_hc","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":120,"wires":[["5994f8d0d7e447db","c70f3bd2aa6f3ad4"]]},{"id":"270eb7aba69559b9","type":"change","z":"419022682c38215a","name":"index + tarif 8  HP BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":340,"wires":[["cfebe2ef6b884a21","e8f0c74e281cd862"]]},{"id":"3caf646bb3258b9c","type":"debug","z":"419022682c38215a","name":"HP BLEU (8)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1250,"y":340,"wires":[]},{"id":"e8f0c74e281cd862","type":"change","z":"419022682c38215a","name":"index_bleu_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":400,"wires":[["46024066637c09b3","6adc919b93826e2f"]]},{"id":"cb37926e35629907","type":"change","z":"419022682c38215a","name":"index + tarif 9 HP BLANC","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":520,"wires":[["8720f0d15a0b5f21"]]},{"id":"bfd641d6c71093fb","type":"debug","z":"419022682c38215a","name":"HP BLANC (9)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":460,"wires":[]},{"id":"8720f0d15a0b5f21","type":"change","z":"419022682c38215a","name":"Index_blanc_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":520,"wires":[["bfd641d6c71093fb","b4df7e0f49cd2267"]]},{"id":"66daf97979f8c794","type":"change","z":"419022682c38215a","name":"index + tarif 10  HP ROUGE","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":560,"wires":[["c42d0882d5d5820c"]]},{"id":"0673b544436c922e","type":"debug","z":"419022682c38215a","name":"HP ROUGE (10)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1080,"y":560,"wires":[]},{"id":"c42d0882d5d5820c","type":"change","z":"419022682c38215a","name":"Index_rouge_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":560,"wires":[["0673b544436c922e","85b23d5223dae2c6"]]},{"id":"46024066637c09b3","type":"ha-sensor","z":"419022682c38215a","name":"index_bleu_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1260,"y":400,"wires":[[]]},{"id":"b4df7e0f49cd2267","type":"ha-sensor","z":"419022682c38215a","name":"index_blanc_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":500,"wires":[[]]},{"id":"85b23d5223dae2c6","type":"ha-sensor","z":"419022682c38215a","name":"index_rouge_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":600,"wires":[[]]},{"id":"b0c0d40ba33f56b2","type":"ha-sensor","z":"419022682c38215a","name":"index_bleu_hc","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":80,"wires":[[]]},{"id":"aad444d57991a231","type":"ha-sensor","z":"419022682c38215a","name":"index_blanc_hc","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":180,"wires":[[]]},{"id":"c70f3bd2aa6f3ad4","type":"ha-sensor","z":"419022682c38215a","name":"index_rouge_hc","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1092,"y":280,"wires":[[]]},{"id":"ce3b5bcbaf17ec19","type":"switch","z":"419022682c38215a","name":"period select","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"hour","vt":"str"},{"t":"eq","v":"day","vt":"str"},{"t":"eq","v":"month","vt":"str"},{"t":"eq","v":"year","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":390,"y":760,"wires":[["fc4e1ae6fb8dd561"],["18ea1f04b361a2b1"],["b2918c4083862901"],["5cdf624e7155034a"]]},{"id":"fc4e1ae6fb8dd561","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_bleu_hp_start_hour","pt":"flow","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":700,"wires":[["656d9e6f45e7cfd4"]]},{"id":"b2918c4083862901","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_wh_start_month","pt":"flow","to":"index_wh","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":940,"wires":[["9874be8266ac0917"]]},{"id":"18ea1f04b361a2b1","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_bleu_hp_start_day","pt":"flow","to":"index_wh","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":900,"wires":[["5105d81231fb5436"]]},{"id":"5105d81231fb5436","type":"debug","z":"419022682c38215a","name":"Index start day","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":980,"y":900,"wires":[]},{"id":"9874be8266ac0917","type":"debug","z":"419022682c38215a","name":"Index start month","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":940,"wires":[]},{"id":"5cdf624e7155034a","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index_wh_start_year","pt":"flow","to":"index_wh","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":980,"wires":[["96fb6e40428890a4"]]},{"id":"96fb6e40428890a4","type":"debug","z":"419022682c38215a","name":"Index start year","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":980,"y":980,"wires":[]},{"id":"d7ff051d95a0d7fa","type":"inject","z":"419022682c38215a","name":"Manual init","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":640,"wires":[["fc4e1ae6fb8dd561","18ea1f04b361a2b1","b2918c4083862901","5cdf624e7155034a"]]},{"id":"801689206e09cd8b","type":"cronplus","z":"419022682c38215a","name":"","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"hour","topic":"hour","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0  * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"day","topic":"day","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 * * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"month","topic":"month","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 1 * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"year","topic":"year","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 1 1 ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":140,"y":760,"wires":[["ce3b5bcbaf17ec19"]]},{"id":"30aab546517815a2","type":"debug","z":"419022682c38215a","name":"index start bleu hp hour","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1290,"y":700,"wires":[]},{"id":"041c1aa22fecd71a","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"index8","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1060,"y":340,"wires":[["3caf646bb3258b9c"]]},{"id":"cfebe2ef6b884a21","type":"change","z":"419022682c38215a","name":"CHANGED: index_bleu_hp","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"activeElectricalEnergy\":msg.payload}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":340,"wires":[["041c1aa22fecd71a"]]},{"id":"656d9e6f45e7cfd4","type":"change","z":"419022682c38215a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":740,"wires":[["eeff2f7fa8a18d9c"]]},{"id":"eeff2f7fa8a18d9c","type":"change","z":"419022682c38215a","name":"index_bleu_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1140,"y":800,"wires":[["30aab546517815a2"]]},{"id":"6adc919b93826e2f","type":"debug","z":"419022682c38215a","name":"HP BLEU -2(8)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1300,"y":460,"wires":[]},{"id":"f9dcde74302ca015","type":"comment","z":"419022682c38215a","name":"does not work to isolate activeElectricalEnergy","info":"","x":1210,"y":840,"wires":[]},{"id":"e91643e.d9013c","type":"knxUltimate-config","host":"192.168.1.100","port":"3671","physAddr":"15.15.22","hostProtocol":"TunnelUDP","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","statusDisplayLastUpdate":true,"statusDisplayDeviceNameWhenALL":true,"statusDisplayDataPoint":false,"stopETSImportIfNoDatapoint":"skip","loglevel":"error","name":"Passerelle IP-KNX","localEchoInTunneling":true,"delaybetweentelegrams":"40","delaybetweentelegramsfurtherdelayREAD":"1","ignoreTelegramsWithRepeatedFlag":false},{"id":"45eb437e4aea0fcd","type":"ha-entity-config","server":"f462add6.8e0bc","deviceConfig":"","name":"","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"index_bleu_hp"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"entity_picture","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"f462add6.8e0bc","type":"server","name":"Home Assistant","addon":true}]

This is all the same error that I described above under ISSUE 1.
If you have a string in payload (i.e. payload = 'foo'), you cannot simply move it to payload.activeEnergy; meaning all the change nodes named index_<some color>_hp that move payload to an attribute will not work.
See red arrow:

You can do it like I showed in the node CHANGED: index_blue_hp
image.

It defines an object {"activeElectricalEnergy":msg.payload} via JSONata and attaches that to msg.payload. Hence, after that msg.payload.activeElectricalEnergy equals msg.payload.

I had tested this solution but I get the "activeElectricalEnergy" and "tariff" values when I would like the number of "activeElectricalEnergy"

I'm sorry I don't understand what exactly is where in your flow.
Since I do not have the inputs, for me payload is mostly undefined.

I suggest you post an example flow that has in the beginning an inject button that produces an object exactly as you see it.

Or just post what goes in and what should come out.

[{"id":"cb3ed28ee1bf79a1","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"3b1e22f304e29e7a","type":"knxUltimate","z":"cb3ed28ee1bf79a1","server":"e91643e.d9013c","topic":"9/7/0","outputtopic":"","dpt":"235.001","initialread":0,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"9/7/23 Index compteur Elec TIC","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":130,"y":260,"wires":[["b64f870f90ef0803"]]},{"id":"b64f870f90ef0803","type":"switch","z":"cb3ed28ee1bf79a1","name":"","property":"payload.tariff","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":210,"y":380,"wires":[[],[],[],["33a720695c8e283b"],[],[]]},{"id":"33a720695c8e283b","type":"change","z":"cb3ed28ee1bf79a1","name":"index + tarif 8  HP BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":420,"wires":[["ae6f9af3b7a7db33","756284c60b0bebcf","63be95a69f6a51e1"]]},{"id":"5fde17eb60ac0c23","type":"debug","z":"cb3ed28ee1bf79a1","name":"HP BLEU (8)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1170,"y":420,"wires":[]},{"id":"756284c60b0bebcf","type":"change","z":"cb3ed28ee1bf79a1","name":"index_bleu_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":480,"wires":[["4ee08e45b36bb726","4b3e3c25214ca7bc"]]},{"id":"4ee08e45b36bb726","type":"ha-sensor","z":"cb3ed28ee1bf79a1","name":"index_bleu_hp","entityConfig":"45eb437e4aea0fcd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1180,"y":480,"wires":[[]]},{"id":"4ec4786e8a23cb34","type":"switch","z":"cb3ed28ee1bf79a1","name":"period select","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"hour","vt":"str"},{"t":"eq","v":"day","vt":"str"},{"t":"eq","v":"month","vt":"str"},{"t":"eq","v":"year","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":310,"y":840,"wires":[["1f941a836ce480e2"],[],[],[]]},{"id":"6bf28f790b5ef0ca","type":"inject","z":"cb3ed28ee1bf79a1","name":"Manual init","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":720,"wires":[["1f941a836ce480e2"]]},{"id":"883c824f62a0548d","type":"cronplus","z":"cb3ed28ee1bf79a1","name":"","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"hour","topic":"hour","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0  * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"day","topic":"day","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 * * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"month","topic":"month","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 1 * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"year","topic":"year","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 0 1 1 ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":60,"y":840,"wires":[["4ec4786e8a23cb34"]]},{"id":"93f7f60d0f2df920","type":"change","z":"cb3ed28ee1bf79a1","name":"","rules":[{"t":"set","p":"index8","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":420,"wires":[["5fde17eb60ac0c23"]]},{"id":"ae6f9af3b7a7db33","type":"change","z":"cb3ed28ee1bf79a1","name":"CHANGED: index_bleu_hp","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"activeElectricalEnergy\":msg.payload}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":420,"wires":[["93f7f60d0f2df920"]]},{"id":"1f941a836ce480e2","type":"change","z":"cb3ed28ee1bf79a1","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":760,"wires":[["a4f4ebd341f20572","337732e3c564fd02"]]},{"id":"4b3e3c25214ca7bc","type":"debug","z":"cb3ed28ee1bf79a1","name":"HP BLEU -2(8)","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1180,"y":560,"wires":[]},{"id":"cfe374af83add626","type":"debug","z":"cb3ed28ee1bf79a1","name":"(2) index start bleu hp hour","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1220,"y":760,"wires":[]},{"id":"a4f4ebd341f20572","type":"change","z":"cb3ed28ee1bf79a1","name":"CHANGED: index_bleu_hp","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"activeElectricalEnergy\":msg.payload}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":760,"wires":[["cfe374af83add626"]]},{"id":"63be95a69f6a51e1","type":"debug","z":"cb3ed28ee1bf79a1","name":"index+tarif 8 HP BLEU","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":780,"y":320,"wires":[]},{"id":"337732e3c564fd02","type":"debug","z":"cb3ed28ee1bf79a1","name":"Debug","tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":660,"wires":[]},{"id":"e91643e.d9013c","type":"knxUltimate-config","host":"192.168.1.100","port":"3671","physAddr":"15.15.22","hostProtocol":"TunnelUDP","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","statusDisplayLastUpdate":true,"statusDisplayDeviceNameWhenALL":true,"statusDisplayDataPoint":false,"stopETSImportIfNoDatapoint":"skip","loglevel":"error","name":"Passerelle IP-KNX","localEchoInTunneling":true,"delaybetweentelegrams":"40","delaybetweentelegramsfurtherdelayREAD":"1","ignoreTelegramsWithRepeatedFlag":false},{"id":"45eb437e4aea0fcd","type":"ha-entity-config","server":"f462add6.8e0bc","deviceConfig":"","name":"","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"index_bleu_hp"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"entity_picture","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"f462add6.8e0bc","type":"server","name":"Home Assistant","addon":true}]

Seems I missunderstood your intention above.
Have a look at this flow, it should give you a better basis to work with.

[{"id":"b64f870f90ef0803","type":"switch","z":"cb3ed28ee1bf79a1","name":"","property":"payload.tariff","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":210,"y":380,"wires":[[],[],[],["33a720695c8e283b"],[],[]]},{"id":"33a720695c8e283b","type":"change","z":"cb3ed28ee1bf79a1","name":"index + tarif 8  HP BLEU","rules":[{"t":"set","p":"index_wh","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":420,"wires":[["756284c60b0bebcf","63be95a69f6a51e1","93f7f60d0f2df920"]]},{"id":"5fde17eb60ac0c23","type":"debug","z":"cb3ed28ee1bf79a1","name":"HP BLEU (8)","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1170,"y":420,"wires":[]},{"id":"756284c60b0bebcf","type":"change","z":"cb3ed28ee1bf79a1","name":"index_bleu_hp","rules":[{"t":"move","p":"payload.activeElectricalEnergy","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":480,"wires":[["4b3e3c25214ca7bc"]]},{"id":"4ec4786e8a23cb34","type":"switch","z":"cb3ed28ee1bf79a1","name":"period select","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"hour","vt":"str"},{"t":"eq","v":"day","vt":"str"},{"t":"eq","v":"month","vt":"str"},{"t":"eq","v":"year","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":310,"y":840,"wires":[["1f941a836ce480e2"],[],[],[]]},{"id":"6bf28f790b5ef0ca","type":"inject","z":"cb3ed28ee1bf79a1","name":"Manual init","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":720,"wires":[["1f941a836ce480e2"]]},{"id":"93f7f60d0f2df920","type":"change","z":"cb3ed28ee1bf79a1","name":"","rules":[{"t":"set","p":"index8","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":420,"wires":[["5fde17eb60ac0c23"]]},{"id":"1f941a836ce480e2","type":"change","z":"cb3ed28ee1bf79a1","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"index8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":760,"wires":[["a4f4ebd341f20572","337732e3c564fd02"]]},{"id":"4b3e3c25214ca7bc","type":"debug","z":"cb3ed28ee1bf79a1","name":"HP BLEU -2(8)","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1180,"y":560,"wires":[]},{"id":"cfe374af83add626","type":"debug","z":"cb3ed28ee1bf79a1","name":"(2) index start bleu hp hour","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1220,"y":760,"wires":[]},{"id":"a4f4ebd341f20572","type":"change","z":"cb3ed28ee1bf79a1","name":"CHANGED again: index_bleu_hp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.activeElectricalEnergy","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":820,"wires":[["cfe374af83add626"]]},{"id":"63be95a69f6a51e1","type":"debug","z":"cb3ed28ee1bf79a1","name":"index+tarif 8 HP BLEU","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":780,"y":320,"wires":[]},{"id":"337732e3c564fd02","type":"debug","z":"cb3ed28ee1bf79a1","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":660,"wires":[]},{"id":"b1630b9ed26f6063","type":"inject","z":"cb3ed28ee1bf79a1","name":"example object","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"activeElectricalEnergy\":922924,\"tariff\":8,\"validityTariff\":false,\"validityEnergy\":false}","payloadType":"json","x":260,"y":540,"wires":[["33a720695c8e283b"]]}]```
1 Like

Thank you very much for the help provided.
I analyzed the first flow I posted and understood my mistakes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.