@TheCrey wrote:
Hi,
i hope you are all fine.
Today i am seeking help for an automation i have in mind for very long time but was not able to build.I would like to show the point with a led stripe and color, when i have to have to start drive to work in the morning.
So if there is more traffic, i have to drive a bit more earlier.Wih the new here sensor, this seems to be realizable.
So here is what i have so far (pretty the same from the example).
Automaton:
- id: weekdays check traffic every minute initial_state: 'on' trigger: - platform: time_pattern minutes: '/1' condition: - condition: time after: '06:00:00' before: '07:30:00' - condition: time weekday: - mon - tue - wed - thu - fri action: - service: homeassistant.update_entity entity_id: sensor.work_tro
sensor:
- platform: here_travel_time name: work_tro traffic_mode: true app_id: "xxxx" app_code: "xxx" origin_latitude: "xxxx" origin_longitude: "xxxx" destination_latitude: "xxxx" destination_longitude: "xxxx"
i think and im not sure about this, i need then a template sensor, which checks the work_tro sensor.
I need to be at work at 8 AM, so check the current time plus the travel time, if it is then 7.45 AM make the string green, will it be 7.55 AM orange and everything after 8 AM make it red
The rest i could with normal automations, like turn off the string if it is after 8 AM etc etc.
But i have an issue on how to realise the calculöation.then i would need an automation like this:
Automation:
- id: traveltime work_to initial_state: 'on' trigger: platform: numeric_state entity_id: sensor.xxxx above: 45 action: service: light.turn_on entity_id: light.xxx
I hope what i am tryining to reach and someone can help me here
Posts: 1
Participants: 1