Yes, if you have the custom integration installed.
[{"id":"7d7f0c35.2ea0e4","type":"api-current-state","z":"ffbd7f06.4a014","name":"","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sun.sun","state_type":"str","state_location":"","override_payload":"none","entity_location":"payload","override_data":"msg","blockInputOverrides":false,"x":436,"y":896,"wires":[["bef2ba78.08c948"]]},{"id":"480d0b3f.166054","type":"inject","z":"ffbd7f06.4a014","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":896,"wires":[["7d7f0c35.2ea0e4"]]},{"id":"cd1c2df1.0f447","type":"split","z":"ffbd7f06.4a014","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":802,"y":896,"wires":[["2ca8c0bf.6035"]]},{"id":"bef2ba78.08c948","type":"change","z":"ffbd7f06.4a014","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.attributes","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":896,"wires":[["cd1c2df1.0f447"]]},{"id":"2ca8c0bf.6035","type":"switch","z":"ffbd7f06.4a014","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"next_dawn","vt":"str"},{"t":"eq","v":"next_dust","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":896,"wires":[["b062e4d8.bbf278"],["f0fc60c5.5ba9f"]]},{"id":"f0fc60c5.5ba9f","type":"ha-entity","z":"ffbd7f06.4a014","name":"","server":"2dad33ee.42bf5c","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"Next Dust"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":1078,"y":896,"wires":[[]]},{"id":"b062e4d8.bbf278","type":"ha-entity","z":"ffbd7f06.4a014","name":"","server":"2dad33ee.42bf5c","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"Next Dawn"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":1078,"y":848,"wires":[[]]}]
If your entity already exists in HA why not use the template sensor?