use logger to suppress logs
Ok, thnx for the info
I need to double check my config, but I have logging set to error for the Waze component and I still see warning messages in my log. If I have the logger component configured correctly (and Iâm pretty sure I do) then it would appear the logger settings for Waze are ignored.
Then itâs not set properly. Logger is what handles all the verbiage that appears in logger and itâs based on the name in brackets on warnings. Components only output to logger, they do not control what logger displays. This is what your config should look like:
logger:
default: info
logs:
homeassistant.components.waze_travel_time: error
even further:
logger:
default: info
logs:
homeassistant.components.waze_travel_time.sensor: error
but there is only the sensor portion for waze so it doesnât matter if you include it or not.
Yep I have the second one in my config. And my actual homeassistant.log
does not have anything about Waze. I guess it is working. What confused me was the log preview when you go to the developer tools tab. It shows Waze errors, but they donât actually get logged in a log file.
I wonder if thatâs intended⊠I would expect it to get filtered there too. Hmm
Nah doesnât work that way
Hi guys, trying to get waze to work but I just get unknown, even with the sample code on the Waze integration page, what do you see wrong with the below? Nothing is being logged as an error
- platform: waze_travel_time
origin: xx.34558134607712, -x.4133548736572275
destination: yy.44944577656866, -y.22002124786377
name: To Work
region: 'EU'
- platform: waze_travel_time
origin: Montréal, QC
destination: Québec, QC
name: WazeTest
region: 'US'
Seems your spaces are wrong for the second oneâŠ
Move the second one 2 spaces to left (title: -platformâŠ)
Sorry it just copied over like that, it is correct in Visual Studio Code and when I do a check config. Just seems like the integration is not actually working.
Edit: The numbers just came up now, I guess it took a while for them to update.
Yes ,interval is default 5 min, seems on first reboot it doesnt work, so it starts working after 5
Would it be possible to somehow make the card red if letâs say the commute time is over a certain amount like 60 mins?
take a look at custom lovelace cards that allow you to change the background. Do you have HACS (Home assistant community store) installed?
I do, whatâs it called? Would it not work with standard picture glance?
config template card in combination with lovelace card mod.
This component not support Asia/Apac region yet right ?
Try EU. I have no idea if Asia fits into any region. The limit is on waze side, not the component.
Got it work on EU for âmalaysiaâ thanks
Indonesia seems not to do anything on EUâŠ
ate least not when using a device_tracker as origin and the destination in EU. (calculating travel time to home)
should I reverse the source and destination maybe? Or does it simply not cover the region.
which would seem inadequate, since a simple template like {{distance(states.device_tracker.device_in_indonesia)}}
does work. Which are of course only kmâs and no travel directions, appreciate that.
Iâm pretty sure waze does not work accross bodies of water. The api only selects 1 travel type by default which is TAXI (Car). Can a car drive over the water?
Try the address in the live map, If it doesnât work, it wonât work in the component.