I am making headway and I believe I am almost there. My initial tests are working with the switch node comparing if the “homesleep” is between “now” and a specific hardcoded time. With your wisdom I was able to acquire the start of morning and evening but I need to convert the system time to the same as now and homesleep. What would I need to do to the “Test” node (image below) to format the pulled states to a time value that I could compare like I did with “homesleep” and “now.”
[{"id":"91e7412cda7af7b3","type":"inject","z":"8cc610aa01707cda","name":"","props":[{"p":"payload"},{"p":"now","v":"( $now('[H01]:[m01]:00', '-0700') )","vt":"jsonata"},{"p":"homesleep","v":"homeassistant.homeAssistant.states[\"input_datetime.house_bedtime\"].state","vt":"global"},{"p":"evening","v":"homeassistant.homeAssistant.states[\"sun.sun\"].attributes.next_setting","vt":"global"},{"p":"morning","v":"homeassistant.homeAssistant.states[\"sun.sun\"].attributes.next_rising","vt":"global"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Test","payloadType":"str","x":130,"y":160,"wires":[["b9e0bca994e25e36","06111061c9c266e6"]]},{"id":"b9e0bca994e25e36","type":"switch","z":"8cc610aa01707cda","name":"Time Ranges","property":"now","propertyType":"msg","rules":[{"t":"btwn","v":"homesleep","vt":"msg","v2":"15:31:00","v2t":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":160,"wires":[["fb153a7bf2794378"],["9c30abe41c816eb1"]]},{"id":"06111061c9c266e6","type":"debug","z":"8cc610aa01707cda","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":520,"y":40,"wires":[]},{"id":"fb153a7bf2794378","type":"debug","z":"8cc610aa01707cda","name":"True","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":510,"y":120,"wires":[]},{"id":"9c30abe41c816eb1","type":"debug","z":"8cc610aa01707cda","name":"False","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":510,"y":200,"wires":[]}]