Hello,
Does anyone put a map in jpg of their house instead of the google maps?
I am thinking to add the configuration of the house in the menu. I guess I have to change the front end.
Thanks
Hello,
Does anyone put a map in jpg of their house instead of the google maps?
I am thinking to add the configuration of the house in the menu. I guess I have to change the front end.
Thanks
Hey,
I have not tried it but I would try something like this:
# Example configuration.yaml entry.
# Shows device_tracker.demo_paulus on a map.
camera:
name: Paulus
platform: generic
limit_refetch_to_url_change: true
still_image_url: >-
{%- if states.device_tracker.demo_paulus.state == 'home' -%}
house.jpg
{%- else -%}
http://maps.googleapis.com/maps/api/staticmap?center={{ states.device_tracker.demo_paulus.attributes.latitude }},{{ states.device_tracker.demo_paulus.attributes.longitude }}&zoom=13&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.device_tracker.demo_paulus.attributes.latitude }},{{ states.device_tracker.demo_paulus.attributes.longitude }}
{%- endif -%}
~Cheers
Just a quick addon I tried it and it worked fine. It even lets gifs play. Finally I can have this (https://media.giphy.com/media/bAplZhiLAsNnG/giphy.gif) as my “location” while @ work