You were correct thanks. I had checked the names but did not spot the space. Cheers, thatâs great. Would flag that as a solution but no option showing⌠sorry
For anybody reading this,
SOLUTION IS POST #2 BY Kermit
[{"id":"019750856dc0db88","type":"api-current-state","z":"1f4df904e908b3bb","name":"charge","server":"","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.gas_standing_charge_in_pence","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"charge","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":302,"y":176,"wires":[["3e14467826cca23b"]]},{"id":"3e14467826cca23b","type":"api-current-state","z":"1f4df904e908b3bb","name":"tariff","server":"","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.gas_tariff_in_pence","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"tariff","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":430,"y":176,"wires":[["5e611fbd420668c8"]]},{"id":"5e611fbd420668c8","type":"api-current-state","z":"1f4df904e908b3bb","name":"consumption","server":"","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.todays_gas_consumption","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"consumption","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":574,"y":176,"wires":[["562ba695ad303dff"]]},{"id":"562ba695ad303dff","type":"api-call-service","z":"1f4df904e908b3bb","name":"","server":"","version":5,"debugenabled":false,"domain":"input_number","service":"set_value","areaId":[],"deviceId":[],"entityId":[],"data":"{\"value\": charge + ( tariff * consumption)}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":782,"y":176,"wires":[[]]},{"id":"bd3c05338bd2a474","type":"server-state-changed","z":"1f4df904e908b3bb","name":"today's cost","server":"","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.todays_gas_cost","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"0","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":150,"y":176,"wires":[["019750856dc0db88"],[]]},{"id":"e1e2b0c92efccdbb","type":"api-call-service","z":"1f4df904e908b3bb","name":"","server":"","version":5,"debugenabled":false,"domain":"input_number","service":"set_value","areaId":[],"deviceId":[],"entityId":[],"data":"(\t $pence := $number($entities(\"input_number.gas_standing_charge_in_pence\").state);\t $tariff := $number($entities(\"input_number.gas_tariff_in_pence\").state);\t $consumption := $number($entities(\"input_number.todays_gas_consumption\").state);\t\t {\"value\": $pence + ( $tariff * $consumption)}\t)","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":366,"y":224,"wires":[[]]},{"id":"c973efa37f6bb25d","type":"server-state-changed","z":"1f4df904e908b3bb","name":"today's cost","server":"","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.todays_gas_cost","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"0","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":150,"y":224,"wires":[["e1e2b0c92efccdbb"],[]]}]