Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. ###includes/sensors.yaml###
  2. - platform: template
  3. sensors:
  4. iss_next_rise:
  5. value_template: ‘{% set nextrise = as_timestamp(states.binary_sensor.iss.attributes.next_rise) | timestamp_custom("%a %d at %H:%M") %} {{ nextrise }}’
  6. friendly_name: ‘Next Visible’
  7.  
  8. ###includes/cameras.yaml###
  9. - platform: generic
  10. name: ISS
  11. still_image_url: https://maps.googleapis.com/maps/api/staticmap?center= 4{{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}&zoom=4&size=500x300&maptype=roadmap&markers=anchor:center%7Cicon:https://example.com/images/satellite-variant.png| 9{{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}
  12. limit_refetch_to_url_change: true
  13.  
  14. ###includes/groups.yaml###
  15. iss:
  16. name: International Space Station
  17. entities:
  18. - sensor.iss_next_rise
  19. - camera.iss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement