Help needed about missing parametrer

Hello,
In another post I’m showing that Viera TV can be turned on using WOL, now I have my PC back up and running and I want to prepare the code for this functionality. Here is my code -> link

and here is my console output:

INFO:homeassistant.bootstrap:Setting up logger
INFO:homeassistant.components.media_player.panasonic_viera:Cirrent mac address is 20.C6.EB.E9.0F.72
ERROR:homeassistant.components.media_player.panasonic_viera:Panasonic Viera TV is not available at 192.168.1.169:55000: HTTP Error 400: Bad Request
INFO:homeassistant.components.media_player.panasonic_viera:Cirrent mac address is None
INFO:homeassistant.components.media_player.panasonic_viera:Cirrent mac3 address is None
INFO:homeassistant.components.media_player.panasonic_viera:Mac: None

As you can see at some point the MAC address is correctly parsed from the yaml file and after that all logging lines are saying None - the value is being lost…

Any ideas?

Check the scope of mac.

1 Like

Thanks @fabaff, but it was noob-ish mistake - the auto discovery component was left on and it was overwriting my configuration at ‘configuration.yaml’. Issue fixed!