Setup Kira IR to IP modules

Hi,
(Originally posted in an old thread but trying with a new one).

I am trying to add my Kira modules to HA, but I am having no luck.
If I add the modules (several in different rooms), HA errors when booting.

Logger: homeassistant.setup Source: components/kira/**init**.py:119 First occurred: 11:34:00 (1 occurrences) Last logged: 11:34:00

Error during setup of component kira
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 253, in _async_setup_component
result = await task
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/kira/init.py”, line 134, in setup
load_module(CONF_SENSOR, idx, module_conf)
File “/usr/src/homeassistant/homeassistant/components/kira/init.py”, line 119, in load_module
module = pykira.KiraReceiver(host, port)
File “/usr/local/lib/python3.10/site-packages/pykira/receiver.py”, line 34, in init
self._socket.bind((host, port))
OSError: [Errno 99] Address not available

This is using the following in my configuration.yaml file

kira:

sensors:

- name: kira_kitchen
  host: 192.168.0.70
  port: 65432

- name: kira_cinema
  host: 192.168.0.71
  port: 65432

- name: kira_living
  host: 192.168.0.72
  port: 65432

- name: kira_bedroom
  host: 192.168.0.73
  port: 65432

- name: kira_dining
  host: 192.168.0.75
  port: 65432

- name: kira_study
  host: 192.168.0.76
  port: 65432

If I only add one unit with the default address of 0.0.0.0 it does appear in the entities.
So it seems that you cannot add more than one Kira…

Any help gratefully received…

Tank

I am getting similar … did you ever get this resolved ?

2023-01-21 17:32:37.398 ERROR (MainThread) [homeassistant.setup] Error during setup of component kira
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/kira/__init__.py", line 105, in setup
    codes = load_codes(hass.config.path(CODES_YAML))
  File "/usr/src/homeassistant/homeassistant/components//__init__.py", line 84, in load_codes
    data = yaml.safe_load(code_file) or []
  File "/usr/local/lib/python3.10/site-packages/yaml/__init__.py", line 125, in safe_load
    return load(stream, SafeLoader)
  File "/usr/local/lib/python3.10/site-packages/yaml/__init__.py", line 81, in load
    return loader.get_single_data()
  File "/usr/local/lib/python3.10/site-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/local/lib/python3.10/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.10/site-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/local/lib/python3.10/site-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "/usr/local/lib/python3.10/site-packages/yaml/scanner.py", line 223, in fetch_more_tokens
    return self.fetch_value()
  File "/usr/local/lib/python3.10/site-packages/yaml/scanner.py", line 577, in fetch_value
    raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
  in "/config/kira_codes.yaml", line 2, column 6

No, I am a new user and at the moment I am getting used to the system. As you see no one else has replied so its one of those things on the back burner…

I think the problem i am facing ios with the kira_codes.yaml file.

Wjhen its empty i have no errors in the logs, when it has some codes it comes up with an error.

yaml.scanner.ScannerError: mapping values are not allowed here
  in "/config/kira_codes.yaml", line 2, column 6

Its weird that there is a lack of feedback but the modern way is to connect to devioces over IP.

However just a few old fashoned IR devices out there would be good to control as part of my HA setup.

On anothert note prepare to have your lifer taken over with HA and the smart home lol

1 Like