Giter Club home page Giter Club logo

Comments (6)

FraBoCH avatar FraBoCH commented on August 28, 2024 1

Hi @booroondookZ I suggest you change to the following setup which works for me in HA 2021.6.6:

  1. Rename the folder in custom_components to "Jablotron80"
  2. In configuration.yaml use: platform: Jablotron80
  3. Use this as your manifest.json content: https://github.com/FraBoCH/HASS-Jablotron80/blob/master/custom_components/Jablotron80/manifest.json

If it still fails, restart without any entry in the configuration.yaml before adding it.
I hope it will work.

from hass-jablotron80.

FraBoCH avatar FraBoCH commented on August 28, 2024

I can confirm the "platform" attribute must match the folder name you put in folder custom_components.
As you are running HA 2021.06.*, please make sure you have a version number in the manifest. I've already added that in my PR #24 but it is not merged yet.
If you didn't do that already, try restarting HA before adding the configuration section in configuration.yaml and the restart once again.
Then, please check the HA logs to see if any error appears.

from hass-jablotron80.

 avatar commented on August 28, 2024

I can confirm the "platform" attribute must match the folder name you put in folder custom_components.

Yes. My folder is:
.../custom_components/jablotron
and it contains these files:

__init__.py
alarm_control_panel.py
manifest.json

HA's configuration.yaml contains these strings:

alarm_control_panel:
  - platform: jablotron
    serial_port: /dev/ttyUSB0

As you are running HA 2021.06.*, please make sure you have a version number in the manifest. I've already added that in my PR #24 but it is not merged yet.

Yes. My manifest.json:

{
        "domain": "Jablotron80",
        "name": "Jablotron 80 Component",
        "version": "0.0.1.0",
        "documentation": "https://github.com/mattsaxon/hass-jablotron80",
        "issue_tracker": "https://github.com/mattsaxon/hass-jablotron80/issues",
        "codeowners": ["@mattsaxon"],
        "version": "1.0.0"
        "codeowners": ["@mattsaxon"]
}

If you didn't do that already, try restarting HA before adding the configuration section in configuration.yaml and the restart once again.

I did HA restarting before confguration changes. But I cannot restart HA after changes because HA tells about invalid configuration and cannot be restarted (see attached screenshots, please).
2021-06-22 11_20_58-Window
Безымянный

Then, please check the HA logs to see if any error appears.

Therere are no any logs becase HA restart is impossible with configuration shown above.
P.S. HA is 2021.6.6 version

from hass-jablotron80.

 avatar commented on August 28, 2024

Hi @booroondookZ I suggest you change to the following setup which works for me in HA 2021.6.6:

Thank you very much! Your method is working to me. But there are some nuances.
After I made changes to the files and then clicked the "Check configuration" button, I again got the same errors that I wrote about earlier. The only difference was that in these errors "Jablotron80" was shown, instead of "jablotron".
And then I made the following steps:

  1. I have commented out the corresponding lines in configuration.yaml file.
  2. I clicked on the "Check configuration" button and made sure there were no errors.
  3. I clicked on the "Restart Home Assistant" button, and then (I have access to the server via Samba) reopened "configuration.yaml" file and removed the comments (at this time the server had not finished its restart yet).
  4. After restarting and getting the server up and running, I made sure that everything works. And what's more: pressing the "Check configuration" button again does not give an error.

from hass-jablotron80.

FraBoCH avatar FraBoCH commented on August 28, 2024

from hass-jablotron80.

mattsaxon avatar mattsaxon commented on August 28, 2024

@FraBoCH thanks for fixing this and putting in the PR. I have now merged.

from hass-jablotron80.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.