The automation chooses between 3 different generator sources based on a few criteria and then calls the appropriate script for that one and then checks to see that they are actually charging, if not it moves to the next. it will display in UI as well, I just copied the YAML because it was easier. You can see the 4 scripts below and there are 3 for the generators and then one for shutdown. The dash card displays them, slow pulses whichever one is in use, if any, and displays the runtime hours for each in real time in the corner of the card. They are button cards too so you can press and call for the script if you want to manually run them. You will need to make a counter helper for each generator to update them. You can use the "number" function in the helper and set the step to .1