Node red energy entity

I am attempting to create and update an entity holding the hildebrand glow api readings for the previous day. My idea was to update this each day and, having read the info on line re using influxdb and grafana, log these changes each day, that can then be used for historical daily data graphs.

The 1st part of this is not going well. I used the node-red companion entity node to save my data, hopefully as an energy class. I did not realise that this could only create a new entity each time so I had hundreds created in testing.

This may be completely the wrong method within node-red but I am unsure of a better way of saving this info for use in historical data, or with the HA Energy dashboard.

The sub-flow I have created is below.

‘’’
[{“id”:“2ebf9645566d5c41”,“type”:“subflow”,“name”:“Retrieve resource details”,“info”:"",“category”:"",“in”:[{“x”:80,“y”:40,“wires”:[{“id”:“7908ff060e8b6667”}]}],“out”:[{“x”:840,“y”:40,“wires”:[{“id”:“5906be6fcea830b8”,“port”:0}]}],“env”:[],“meta”:{},“color”:"#DDAA99"},{“id”:“cc1208164c24010c”,“type”:“debug”,“z”:“2ebf9645566d5c41”,“name”:“Retrieve resource details - Debug 2”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:860,“y”:140,“wires”:[]},{“id”:“5906be6fcea830b8”,“type”:“http request”,“z”:“2ebf9645566d5c41”,“name”:“Get the resource readings”,“method”:“GET”,“ret”:“obj”,“paytoqs”:“query”,“url”:"",“tls”:"",“persist”:false,“proxy”:"",“insecureHTTPParser”:false,“authType”:"",“senderr”:false,“headers”:[],“x”:530,“y”:140,“wires”:[[“cc1208164c24010c”]]},{“id”:“7908ff060e8b6667”,“type”:“function”,“z”:“2ebf9645566d5c41”,“name”:“set payload and headers”,“func”:“var todayd = new Date();\nvar yesterdayd = new Date();\nyesterdayd.setDate(yesterdayd.getDate() - 1 - 1);\ntodayd = (todayd.getFullYear() + ‘-’ + (‘00’ + (todayd.getMonth() + 1)).slice(-2) + ‘-’ + (‘00’ + todayd.getDate()).slice(-2) + ‘T00:00:00’);\nyesterdayd = (yesterdayd.getFullYear() + ‘-’ + (‘00’ + (yesterdayd.getMonth() + 1)).slice(-2) + ‘-’ + (‘00’ + yesterdayd.getDate()).slice(-2) + ‘T00:00:00’);\n\nvar message = 'from:”’ + yesterdayd + ‘",’;\nmessage+= ‘to:"’ + todayd + ‘",’;\nmessage += ’ period: “P1W”,function: “sum”’\nmsg.payload = {\n/* \n"from": “2022-10-09T00:00:00”,\n “to”: “2022-10-11T00:00:00”,\n “period”: “P1W”,\n “function”: “sum”\n*/\n \n from: yesterdayd,\n to: todayd,\n period: “P1W”,\n function: “sum”\n\n }\nmsg.headers = {};\nmsg.headers[‘accept’] = “application/json”;\nmsg.headers[‘token’] = global.get(“hildebrand_glowmrkt_token”);\nmsg.headers[‘applicationId’] = global.get(“hildebrand_glowmarkt_applicationId”);\nmsg.url = “https://api.glowmarkt.com/api/v0-1/resource/” + global.get(“hildebrand_glowmrkt_resourceId_current”) + “/readings?”;\nreturn msg;",“outputs”:1,“noerr”:0,“initialize”:"",“finalize”:"",“libs”:[],“x”:270,“y”:140,“wires”:[[“5906be6fcea830b8”,“310b4f009bdb414d”]]},{“id”:“310b4f009bdb414d”,“type”:“debug”,“z”:“2ebf9645566d5c41”,“name”:“Retrieve resource details - Debug 1”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:620,“y”:260,“wires”:[]},{“id”:“bc7fa7d577149169”,“type”:“subflow”,“name”:“Retrieve Yesterdays Readings”,“info”:"",“category”:"",“in”:[{“x”:40,“y”:60,“wires”:[{“id”:“675298049ab7e1be”}]}],“out”:[],“env”:[],“meta”:{},“color”:"#DDAA99"},{“id”:“ab95aca9cc04419d”,“type”:“http request”,“z”:“bc7fa7d577149169”,“name”:“Get a virtual entity with the full definition of resources”,“method”:“GET”,“ret”:“txt”,“paytoqs”:“ignore”,“url”:"",“tls”:"",“persist”:false,“proxy”:"",“insecureHTTPParser”:false,“authType”:"",“senderr”:false,“headers”:[],“x”:520,“y”:160,“wires”:[[“91f63918b8343e73”]]},{“id”:“675298049ab7e1be”,“type”:“function”,“z”:“bc7fa7d577149169”,“name”:“set payload and headers”,“func”:“msg.headers = {};\nmsg.headers[‘accept’] = “application/json”;\nmsg.headers[‘token’] = global.get(“hildebrand_glowmrkt_token”);\nmsg.headers[‘applicationId’] = global.get(“hildebrand_glowmarkt_applicationId”);\nmsg.url = “https://api.glowmarkt.com/api/v0-1/virtualentity/” + global.get(“hildebrand_glowmrkt_veId”) + “/resources”;\nreturn msg;”,“outputs”:1,“noerr”:0,“initialize”:"",“finalize”:"",“libs”:[],“x”:190,“y”:160,“wires”:[[“ab95aca9cc04419d”,“914dd3b450a48d38”]]},{“id”:“7934e73938129743”,“type”:“debug”,“z”:“bc7fa7d577149169”,“name”:“Retrieve Yesterdays Readings - Debug 2”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:860,“y”:220,“wires”:[]},{“id”:“91f63918b8343e73”,“type”:“json”,“z”:“bc7fa7d577149169”,“name”:“Convert Payload to a JSON Object”,“property”:“payload”,“action”:"",“pretty”:false,“x”:220,“y”:220,“wires”:[[“40a6d3bd049abf60”]]},{“id”:“40a6d3bd049abf60”,“type”:“change”,“z”:“bc7fa7d577149169”,“name”:“Set Flow resourceIds”,“rules”:[{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_electricity_cost”,“pt”:“global”,“to”:“payload.resources[0].resourceId”,“tot”:“msg”},{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_electricity_consumption”,“pt”:“global”,“to”:“payload.resources[1].resourceId”,“tot”:“msg”},{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_gas_cost”,“pt”:“global”,“to”:“payload.resources[2].resourceId”,“tot”:“msg”},{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_gas_consumption”,“pt”:“global”,“to”:“payload.resources[3].resourceId”,“tot”:“msg”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:500,“y”:220,“wires”:[[“7934e73938129743”,“55f005405a8b9dd8”,“9582cf70ab8a9554”,“121f6861c0eb03d5”,“7b4b53e24185dc3a”,“798426ddf48de28f”]]},{“id”:“55f005405a8b9dd8”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_electricity_consumption_cost”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Electricity Consumption Cost”},{“property”:“device_class”,“value”:""},{“property”:“icon”,“value”:“mdi:meter-electric”},{“property”:“unit_of_measurement”,“value”:""},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“active”,“value”:“payload.resources[0].active”,“valueType”:“msg”},{“property”:“resourceTypeId”,“value”:“payload.resources[0].resourceTypeId”,“valueType”:“msg”},{“property”:“ownerId”,“value”:“payload.resources[0].ownerId”,“valueType”:“msg”},{“property”:“name”,“value”:“payload.resources[0].name”,“valueType”:“msg”},{“property”:“description”,“value”:“payload.resources[0].description”,“valueType”:“msg”},{“property”:“label”,“value”:“payload.resources[0].label”,“valueType”:“msg”},{“property”:“unit”,“value”:“payload.resources[0].dataSourceResourceTypeInfo.unit”,“valueType”:“msg”},{“property”:“type”,“value”:“payload.resources[0].dataSourceResourceTypeInfo.type”,“valueType”:“msg”},{“property”:“dataSourceType”,“value”:“payload.resources[0].dataSourceType”,“valueType”:“msg”},{“property”:“classifier”,“value”:“payload.resources[0].classifier”,“valueType”:“msg”},{“property”:“baseUnit”,“value”:“payload.resources[0].baseUnit”,“valueType”:“msg”},{“property”:“resourceId”,“value”:“payload.resources[0].resourceId”,“valueType”:“msg”},{“property”:“updatedAt”,“value”:“payload.resources[0].updatedAt”,“valueType”:“msg”},{“property”:“createdAt”,“value”:“payload.resources[0].createdAt”,“valueType”:“msg”},{“property”:“shid”,“value”:“payload.resources[0].dataSourceUnitInfo.shid”,“valueType”:“msg”},{“property”:“veTypeId”,“value”:“payload.veTypeId”,“valueType”:“msg”},{“property”:“veId”,“value”:“payload.veId”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:240,“y”:280,“wires”:[[]]},{“id”:“9582cf70ab8a9554”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_electricity_consumption”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Electricity Consumption”},{“property”:“device_class”,“value”:""},{“property”:“icon”,“value”:“mdi:meter-electric”},{“property”:“unit_of_measurement”,“value”:""},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“active”,“value”:“payload.resources[1].active”,“valueType”:“msg”},{“property”:“resourceTypeId”,“value”:“payload.resources[1].resourceTypeId”,“valueType”:“msg”},{“property”:“ownerId”,“value”:“payload.resources[1].ownerId”,“valueType”:“msg”},{“property”:“name”,“value”:“payload.resources[1].name”,“valueType”:“msg”},{“property”:“description”,“value”:“payload.resources[1].description”,“valueType”:“msg”},{“property”:“label”,“value”:“payload.resources[1].label”,“valueType”:“msg”},{“property”:“unit”,“value”:“payload.resources[1].dataSourceResourceTypeInfo.unit”,“valueType”:“msg”},{“property”:“type”,“value”:“payload.resources[1].dataSourceResourceTypeInfo.type”,“valueType”:“msg”},{“property”:“dataSourceType”,“value”:“payload.resources[1].dataSourceType”,“valueType”:“msg”},{“property”:“classifier”,“value”:“payload.resources[1].classifier”,“valueType”:“msg”},{“property”:“baseUnit”,“value”:“payload.resources[1].baseUnit”,“valueType”:“msg”},{“property”:“resourceId”,“value”:“payload.resources[1].resourceId”,“valueType”:“msg”},{“property”:“updatedAt”,“value”:“payload.resources[1].updatedAt”,“valueType”:“msg”},{“property”:“createdAt”,“value”:“payload.resources[1].createdAt”,“valueType”:“msg”},{“property”:“shid”,“value”:“payload.resources[1].dataSourceUnitInfo.shid”,“valueType”:“msg”},{“property”:“veTypeId”,“value”:“payload.veTypeId”,“valueType”:“msg”},{“property”:“veId”,“value”:“payload.veId”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:220,“y”:340,“wires”:[[]]},{“id”:“121f6861c0eb03d5”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_gas_consumption_cost”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Gas Consumption Cost”},{“property”:“device_class”,“value”:""},{“property”:“icon”,“value”:“mdi:meter-gas”},{“property”:“unit_of_measurement”,“value”:""},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“active”,“value”:“payload.resources[2].active”,“valueType”:“msg”},{“property”:“resourceTypeId”,“value”:“payload.resources[2].resourceTypeId”,“valueType”:“msg”},{“property”:“ownerId”,“value”:“payload.resources[2].ownerId”,“valueType”:“msg”},{“property”:“name”,“value”:“payload.resources[2].name”,“valueType”:“msg”},{“property”:“description”,“value”:“payload.resources[2].description”,“valueType”:“msg”},{“property”:“label”,“value”:“payload.resources[2].label”,“valueType”:“msg”},{“property”:“unit”,“value”:“payload.resources[2].dataSourceResourceTypeInfo.unit”,“valueType”:“msg”},{“property”:“type”,“value”:“payload.resources[2].dataSourceResourceTypeInfo.type”,“valueType”:“msg”},{“property”:“dataSourceType”,“value”:“payload.resources[2].dataSourceType”,“valueType”:“msg”},{“property”:“classifier”,“value”:“payload.resources[2].classifier”,“valueType”:“msg”},{“property”:“baseUnit”,“value”:“payload.resources[2].baseUnit”,“valueType”:“msg”},{“property”:“resourceId”,“value”:“payload.resources[02].resourceId”,“valueType”:“msg”},{“property”:“updatedAt”,“value”:“payload.resources[2].updatedAt”,“valueType”:“msg”},{“property”:“createdAt”,“value”:“payload.resources[2].createdAt”,“valueType”:“msg”},{“property”:“shid”,“value”:“payload.resources[2].dataSourceUnitInfo.shid”,“valueType”:“msg”},{“property”:“veTypeId”,“value”:“payload.veTypeId”,“valueType”:“msg”},{“property”:“veId”,“value”:“payload.veId”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:220,“y”:400,“wires”:[[]]},{“id”:“7b4b53e24185dc3a”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_gas_consumption”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Gas Consumption”},{“property”:“device_class”,“value”:""},{“property”:“icon”,“value”:“mdi:meter-gas”},{“property”:“unit_of_measurement”,“value”:""},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“active”,“value”:“payload.resources[3].active”,“valueType”:“msg”},{“property”:“resourceTypeId”,“value”:“payload.resources[3].resourceTypeId”,“valueType”:“msg”},{“property”:“ownerId”,“value”:“payload.resources[3].ownerId”,“valueType”:“msg”},{“property”:“name”,“value”:“payload.resources[3].name”,“valueType”:“msg”},{“property”:“description”,“value”:“payload.resources[3].description”,“valueType”:“msg”},{“property”:“label”,“value”:“payload.resources[3].label”,“valueType”:“msg”},{“property”:“unit”,“value”:“payload.resources[3].dataSourceResourceTypeInfo.unit”,“valueType”:“msg”},{“property”:“type”,“value”:“payload.resources[3].dataSourceResourceTypeInfo.type”,“valueType”:“msg”},{“property”:“dataSourceType”,“value”:“payload.resources[3].dataSourceType”,“valueType”:“msg”},{“property”:“classifier”,“value”:“payload.resources[3].classifier”,“valueType”:“msg”},{“property”:“baseUnit”,“value”:“payload.resources[3].baseUnit”,“valueType”:“msg”},{“property”:“resourceId”,“value”:“payload.resources[3].resourceId”,“valueType”:“msg”},{“property”:“updatedAt”,“value”:“payload.resources[3].updatedAt”,“valueType”:“msg”},{“property”:“createdAt”,“value”:“payload.resources[3].createdAt”,“valueType”:“msg”},{“property”:“shid”,“value”:“payload.resources[3].dataSourceUnitInfo.shid”,“valueType”:“msg”},{“property”:“veTypeId”,“value”:“payload.veTypeId”,“valueType”:“msg”},{“property”:“veId”,“value”:“payload.veId”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:200,“y”:460,“wires”:[[]]},{“id”:“798426ddf48de28f”,“type”:“change”,“z”:“bc7fa7d577149169”,“name”:“Set electric cost resourceId”,“rules”:[{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_current”,“pt”:“global”,“to”:“hildebrand_glowmrkt_resourceId_electricity_cost”,“tot”:“global”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:560,“y”:360,“wires”:[[“21dfe35c2053cd02”]]},{“id”:“164c3c63ae1dd995”,“type”:“change”,“z”:“bc7fa7d577149169”,“name”:“Set electric consumption resourceId”,“rules”:[{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_current”,“pt”:“global”,“to”:“hildebrand_glowmrkt_resourceId_electricity_consumption”,“tot”:“global”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:540,“y”:420,“wires”:[[“7d797e0d7d5493b6”]]},{“id”:“2350f3249fa31748”,“type”:“change”,“z”:“bc7fa7d577149169”,“name”:“Set gas cost resourceId”,“rules”:[{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_current”,“pt”:“global”,“to”:“hildebrand_glowmrkt_resourceId_gas_cost”,“tot”:“global”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:570,“y”:480,“wires”:[[“125e234d2ccb1847”]]},{“id”:“36905c4ab124fb18”,“type”:“change”,“z”:“bc7fa7d577149169”,“name”:“Set gas consumption resourceId”,“rules”:[{“t”:“set”,“p”:“hildebrand_glowmrkt_resourceId_current”,“pt”:“global”,“to”:“hildebrand_glowmrkt_resourceId_gas_consumption”,“tot”:“global”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:550,“y”:540,“wires”:[[“2a47f96b48bb8873”]]},{“id”:“21dfe35c2053cd02”,“type”:“subflow:2ebf9645566d5c41”,“z”:“bc7fa7d577149169”,“name”:“Daily values”,“x”:770,“y”:360,“wires”:[[“f209c3884cf93332”]]},{“id”:“7d797e0d7d5493b6”,“type”:“subflow:2ebf9645566d5c41”,“z”:“bc7fa7d577149169”,“name”:“Daily values”,“x”:770,“y”:420,“wires”:[[“06d77df5b64a4c3d”]]},{“id”:“125e234d2ccb1847”,“type”:“subflow:2ebf9645566d5c41”,“z”:“bc7fa7d577149169”,“name”:“Daily values”,“x”:770,“y”:480,“wires”:[[“ec3c54f8e88e0210”]]},{“id”:“2a47f96b48bb8873”,“type”:“subflow:2ebf9645566d5c41”,“z”:“bc7fa7d577149169”,“name”:“Daily values”,“x”:770,“y”:540,“wires”:[[“63800072bcff8b50”]]},{“id”:“f209c3884cf93332”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_electricity_daily_cost”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Electricity Daily Cost”},{“property”:“device_class”,“value”:“energy”},{“property”:“icon”,“value”:“mdi:meter-electric”},{“property”:“unit_of_measurement”,“value”:“pence”},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“date”,“value”:“payload.data[0][0]”,“valueType”:“msg”},{“property”:“value”,“value”:“payload.data[0][1]”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:990,“y”:360,“wires”:[[“164c3c63ae1dd995”]]},{“id”:“914dd3b450a48d38”,“type”:“debug”,“z”:“bc7fa7d577149169”,“name”:“Retrieve Yesterdays Readings - Debug 1”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:460,“y”:80,“wires”:[]},{“id”:“06d77df5b64a4c3d”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_electricity_daily_consumption”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Electricity Daily Consumption”},{“property”:“device_class”,“value”:“energy”},{“property”:“icon”,“value”:“mdi:meter-electric”},{“property”:“unit_of_measurement”,“value”:“kWh”},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“date”,“value”:“payload.data[0][0]”,“valueType”:“msg”},{“property”:“value”,“value”:“payload.data[0][1]”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:1020,“y”:420,“wires”:[[“2350f3249fa31748”]]},{“id”:“ec3c54f8e88e0210”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_gas_daily_cost”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Gas Daily Cost”},{“property”:“device_class”,“value”:“energy”},{“property”:“icon”,“value”:“mdi:meter-electric”},{“property”:“unit_of_measurement”,“value”:“pence”},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“date”,“value”:“payload.data[0][0]”,“valueType”:“msg”},{“property”:“value”,“value”:“payload.data[0][1]”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:980,“y”:480,“wires”:[[“36905c4ab124fb18”]]},{“id”:“63800072bcff8b50”,“type”:“ha-entity”,“z”:“bc7fa7d577149169”,“name”:“hildebrand_gas_daily_consumption”,“server”:“b90526bf.032a78”,“version”:2,“debugenabled”:false,“outputs”:1,“entityType”:“sensor”,“config”:[{“property”:“name”,“value”:“Hildebrand Glowmrkt Gas Daily Consumption”},{“property”:“device_class”,“value”:“energy”},{“property”:“icon”,“value”:“mdi:meter-electric”},{“property”:“unit_of_measurement”,“value”:“kWh”},{“property”:“state_class”,“value”:""},{“property”:“last_reset”,“value”:""}],“state”:“true”,“stateType”:“bool”,“attributes”:[{“property”:“date”,“value”:“payload.data[0][0]”,“valueType”:“msg”},{“property”:“value”,“value”:“payload.data[0][1]”,“valueType”:“msg”}],“resend”:true,“outputLocation”:“payload”,“outputLocationType”:“none”,“inputOverride”:“allow”,“outputOnStateChange”:false,“outputPayload”:"",“outputPayloadType”:“str”,“x”:1000,“y”:540,“wires”:[[]]},{“id”:“b90526bf.032a78”,“type”:“server”,“name”:“Home assistant”,“version”:4,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:"",“connectionDelay”:false,“cacheJson”:false,“heartbeat”:false,“heartbeatInterval”:"",“areaSelector”:“friendlyName”,“deviceSelector”:“friendlyName”,“entitySelector”:“friendlyName”,“statusSeparator”:"at: ",“statusYear”:“hidden”,“statusMonth”:“short”,“statusDay”:“numeric”,“statusHourCycle”:“h23”,“statusTimeFormat”:“h:m”}]
‘’’