Facebook component - 'utf-8' codec can't decode byte 0xe9

i am trying install facebook component…
but i have this error on my log:

17-01-23 12:08:19 homeassistant.util.yaml: Unable to read file /home/homeassistant/.homeassistant/includes/automation/face.yaml: ‘utf-8’ codec can’t decode byte 0xe9 in position 170: invalid continuation byte

how can fix this?

thanks
@fabaff

Take a look at your face.yaml file and remove the char which is causing problems.

I had this problem with a sensor template once from copying and pasting an example with the degree symbol. It wasn’t obvious to me at the time that the degree symbol was what was causing the issue.

One way around this is to get a copy of SublimeText, which has a “Save with Encoding” option that will allow you to save in UTF-8 format. This is helpful if you can’t figure out what character is causing the issue.

@fabaff @rpitera
ok i remove the degree symbol.
now i have this error 

notify.yaml

- name: Facebook_Messenger
  platform: facebook
  page_access_token: xxxxxxxxxxxxxxxxxxxxxx

LOG:

17-01-23 22:43:02 homeassistant.bootstrap: Setting up notify
17-01-23 22:43:02 homeassistant.bootstrap: Error during setup of component notify
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 151, in _async_setup_component
    None, component.setup, hass, config)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 143, in setup
    if not setup_notify_platform(platform, p_config):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 89, in setup_notify_platform
    hass, p_config, discovery_info)
TypeError: get_service() takes 2 positional arguments but 3 were given
17-01-23 22:43:02 homeassistant.core: Bus:Handling <Event call_service[L]: service=create, service_data=notification_id=invalid_config, message=The following components and platforms could not be set up:
* [notify](https://home-assistant.io/components/notify/)
Please check your config, title=Invalid config, domain=persistent_notification, service_call_id=3051388208-1>

Hi Rodolfo,

Have a look at this, it looks like there is/was a bug with the component:

I had the same issue and gave up for now.

1 Like

Is there an é in your file anywhere? Replacing it with e might fix it?

(sorry for the zombie topic resurrection, I just changed a ø from an awesome Norwegian programmer that was causing a 'utf-8' codec can't decode byte 0xf8 error on my English setup)