Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arduino integration isn't working in custom_components #34826

Open
majuss opened this issue Apr 28, 2020 · 3 comments
Open

arduino integration isn't working in custom_components #34826

majuss opened this issue Apr 28, 2020 · 3 comments
Assignees

Comments

@majuss
Copy link
Contributor

@majuss majuss commented Apr 28, 2020

The problem

I copied the arduino integration into custom_components:

cp -R /srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/arduino/ /home/homeassistant/.homeassistant/custom_components/

and made homeassistant the owner:

sudo chown -R homeassistant:homeassistant arduino/

Environment

Latest hass, latest raspbian on Pi 4.

Problem-relevant configuration.yaml

arduino:
  port: /dev/ttyACM0

sensor:
  - platform: arduino
    pins:
      4:
        name: Door Ring

switch:
  - platform: arduino
    pins:
      21:
        name: Bell Speaker
        initial: true
      5:
        name: Door Opener

Traceback/Error logs

2020-04-28 21:41:30 WARNING (SyncWorker_4) [custom_components.arduino] The version of the StandardFirmata sketch was notdetected. This may lead to side effects
2020-04-28 21:41:30 ERROR (SyncWorker_11) [custom_components.arduino.switch] A connection has not been made to the Arduino board
2020-04-28 21:41:30 ERROR (SyncWorker_14) [custom_components.arduino.sensor] A connection has not been made to the Arduino board

Additional information

So the integration is working as expected outside of the custom_components, but if I want to improve this integration I basically have to use the custom_components dir for development purposes.
Something of the setup procedure of custom integrations is breaking the arduino one.

@probot-home-assistant
Copy link

@probot-home-assistant probot-home-assistant bot commented Apr 28, 2020

arduino documentation
arduino source
(message by IssueLinks)

@probot-home-assistant
Copy link

@probot-home-assistant probot-home-assistant bot commented Apr 28, 2020

Hey there @fabaff, mind taking a look at this issue as its been labeled with a integration (arduino) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@majuss
Copy link
Contributor Author

@majuss majuss commented Apr 30, 2020

So I took another Pi, fresh Raspbian, fresh hass, StandardFirmata firmware, another Arduino. Exactly the same beahviour. As soon as I use the custom_components nothing works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.