Bluetooth auto-brightness shortcut help

Hi everyone

Hoping someone can help me create this iOS Shortcut please?

-it only triggers if it’s after dark (so let’s say if it’s after 30m after sunset, and before 30m before sunrise)
-it only triggers if my iPhone is connected to my car Bluetooth (i.e. when I’m in my car, if it’s dark already, or it becomes dark as I’m driving, it runs)
-it sets the screen brightness to 1%

Also a second one to do the reverse:
-(any time of day)
-it only triggers when my iPhone is disconnected from my car Bluetooth (i.e. it always runs when I get out of my car)
-it sets the screen brightness to 20%

Hope someone can help?

TIA.

Mark