🌘 Lunar Phase Integration for Home Assistant

Because HA uses datime object. above are examples how to convert to local or custom format via template. Then you can use in esp as ‘text’

1 Like

Hey guys
thanks a lot for your help, I finally got it sorted! And I learned a lot about using the template-editor for testing and importing sensors to my ESP32-configs. I managed to import a binary sensor myself which feels like I climbed the Mount Everest :slight_smile:
For some reason before esphome didn’t know anything about the imported textsensor. After restarting from scratch I could reproduce nickrout’s results. I then started to understand what a text-sensor delivers and that the string-output from sensor.schafisheim_next_full_moon is too long for my display. From this point I was able to follow VietNgoc’s explanations and to format the string as desired. Thank you so much guys, huge learning to the weekend start! :sunglasses:

3 Likes

That looks cool, I think I’ll try to create something with esp. I’ve got some boards lying around :smiley: Thanks for inspiration :love_you_gesture: