basnijholt / home-assistant-streamdeck-yaml

Control Home Assistant on Stream Deck with support on all operating systems and configuration via YAML
Apache License 2.0
236 stars 15 forks source link

Help with installation #144

Open SilverArrow-44 opened 1 year ago

SilverArrow-44 commented 1 year ago

Hello, Can someone please help? Buttons are not getting updated when i connect directly to HA using this option. Below are what i did. (Im using Home Assistant Yellow)

Connected stream deck directly to HA

Installed the Add-on (Using My add on button)

Used option-1 configuration (streamdeck_config: /config/streamdeck.yaml)

I went to Config folder and created a new file called streamdeck.yaml

I pasted the example code in the streamdeck.yaml file

The stream deck shows me only the logo screen. Please help

Below is the log:

[21:56:48] INFO: Starting home-assistant-streamdeck-yaml...
[21:56:49] Using version 2023.8.5 of the  home_assistant_streamdeck_yaml.py:1923
           Home Assistant Stream Deck.                                          
           Starting Stream Deck           home_assistant_streamdeck_yaml.py:1924
           integration with                                                     
           args.host='supervisor/core',                                         
           args.config=PosixPath('/config                                       
           /streamdeck.yaml'),                                                  
           args.protocol='ws'                                                   
Traceback (most recent call last):
  File "/usr/local/bin/home-assistant-streamdeck-yaml", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/app/home_assistant_streamdeck_yaml.py", line 1928, in main
    asyncio.run(
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/home_assistant_streamdeck_yaml.py", line 1835, in run
    deck = get_deck()
           ^^^^^^^^^^
  File "/app/home_assistant_streamdeck_yaml.py", line 1482, in get_deck
    deck.open()
  File "/usr/local/lib/python3.11/site-packages/StreamDeck/Devices/StreamDeck.py", line 157, in open
    self._reset_key_stream()
  File "/usr/local/lib/python3.11/site-packages/StreamDeck/Devices/StreamDeckOriginalV2.py", line 87, in _reset_key_stream
    self.device.write(payload)
  File "/usr/local/lib/python3.11/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py", line 492, in write
    return self.hidapi.write(self.device_handle, payload)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/StreamDeck/Transport/LibUSBHIDAPI.py", line 312, in write
    raise TransportError("Failed to write out report (%d)" % result)
StreamDeck.Transport.Transport.TransportError: Failed to write out report (-1)
douglove commented 4 months ago

I have this same issue. Does anyone have a solution for this?