Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105960

Automation will not accept MAC address

$
0
0

Hello. Wondering if somebody could assist, please?

I am attempting to integrate my TVs (LG) into Home Assistant. The bedroom TV integrated with no problems and I was able to create a remote control dashboard. I was also able to turn on the TV through “wake on lan: send magic packet” action.

I have integrated the lounge TV but cannot create a “wake on lan: send magic packet” action to turn on the TV. This does not work at all.

I noticed in YAML that the last 2 digits of the MAC address are in red colour. I have tried altering the MAC address, in YAML, by using capital letters, using single quotation marks, double quotation marks. It remains red.

Here is the YAML code:

I can stop the last 2 digits showing red colour, and turn it to white, if the digit ‘7’ is changed to a letter instead of a number. Any number keeps it red.

I have checked the log details in the assistant core and it shows this code:

Logger: homeassistant.components.automation.turn_on_miro_lounge_tv_with_wakeonlan
Source: helpers/script.py:524
integration: Automation (documentation, issues)
First occurred: 17:44:13 (3 occurrences)
Last logged: 17:46:25

Turn On Miro Lounge TV with WakeOnLan: Error executing script. Unexpected error for call_service at pos 1: Incorrect MAC address format
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1008, in _async_step_call_service
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wake_on_lan/__init__.py", line 54, in send_magic_packet
    await hass.async_add_executor_job(
        partial(wakeonlan.send_magic_packet, mac_address, **service_kwargs)
    )
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/wakeonlan.py", line 56, in send_magic_packet
    packets = [create_magic_packet(mac) for mac in macs]
               ~~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/local/lib/python3.13/site-packages/wakeonlan.py", line 31, in create_magic_packet
    raise ValueError("Incorrect MAC address format")
ValueError: Incorrect MAC address format

Any thoughts would be much appreciated.

Thank you for your time reading this.

Miro

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105960

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>