Giter Site home page Giter Site logo

nechry / elco-remocon-net-appdaemon Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 1.0 288 KB

An AppDaemon to fetch data from the gas boiler system via the Elco Remocon-Net cloud service and push them to home-assistant entities.

License: MIT License

Python 100.00%
appdaemon-apps homeassistant-custom-component remocon-net elco hacs home-assistant home-automation smarthome ariston ariston-remotethermo

elco-remocon-net-appdaemon's Introduction

Nechry Automation Blog

About me 👋

Hi there, I'm Jean-François - aka nechry

Twitter Follow

I live in Switzerland and I am a full-time IoT solution engineer and passionate about home automation on my free time.

By nature I like to share, that's why I got involved in several open source projects 🔭:

  • I am part of the organization Openzwave as a contributor to the openzwave library since 2015 already.
  • I previously developed and maintained the plugin-openzwave for jeedom gateways.
  • I also helped and maintained python-openzwave for a while.

Sponsor nechry on GitHub

If you find my work useful, consider supporting me as a sponsor

Github Sponsorship

Thank you in advance!


Connect with me

Recent Github Activity

Last Updated: Sunday, August 11th, 2024, 15:34

  1. ⭐ Starred aapooksman/certmitm
  2. ⭐ Starred nmatt0/mitmrouter
  3. ⭐ Starred JosephHewitt/wardriver_rev3
  4. ⭐ Starred Root-Down-Digital/pentesting-resources
  5. ⭐ Starred sickcodes/Docker-OSX

💻 Languages and Tools 💻

⚡ GitHub Stats ⚡












Github Stats

elco-remocon-net-appdaemon's People

Contributors

actions-user avatar nechry avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

matfroh

elco-remocon-net-appdaemon's Issues

entities manually or automatically???

Sorry for my bad English, I am a German User:

Do I have to create the entities manually or does the app create it automatically???

My apps.yaml:

remocon:
  module: elco-remocon-net-appdaemon
  class: Remocon
  plugin: HASS
  base_url: https://www.remocon-net.remotethermo.com
  username: !secret remocon_username
  password: !secret remocon_password
  gateway_id: !secret remocon_gateway_id
  bearer_token: !secret remocon_bearer_token
  ha_url: home.janczek.net:8123
  # refresh_rate: 60 
  # optional

I had to add the ha_url -->> without errors

Log From AppDaemon:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.13.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.3  (amd64 / qemux86-64)
 Home Assistant Core: 2023.6.2
 Home Assistant Supervisor: 2023.06.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-appdaemon: starting
s6-rc: info: service init-appdaemon successfully started
s6-rc: info: service appdaemon: starting
s6-rc: info: service appdaemon successfully started
s6-rc: info: service legacy-services: starting
[21:56:44] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
2023-06-23 21:56:46.809497 INFO AppDaemon: AppDaemon Version 4.4.2 starting
2023-06-23 21:56:46.809671 INFO AppDaemon: Python version is 3.11.4
2023-06-23 21:56:46.809768 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2023-06-23 21:56:46.809854 INFO AppDaemon: Added log: AppDaemon
2023-06-23 21:56:46.809957 INFO AppDaemon: Added log: Error
2023-06-23 21:56:46.810030 INFO AppDaemon: Added log: Access
2023-06-23 21:56:46.810104 INFO AppDaemon: Added log: Diag
2023-06-23 21:56:46.957145 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2023-06-23 21:56:47.104477 INFO HASS: HASS Plugin Initializing
2023-06-23 21:56:47.104623 WARNING HASS: ha_url not found in HASS configuration - module not initialized
2023-06-23 21:56:47.104722 INFO HASS: HASS Plugin initialization complete
2023-06-23 21:56:47.104971 INFO AppDaemon: Initializing HTTP
2023-06-23 21:56:47.105194 INFO AppDaemon: Using 'ws' for event stream
2023-06-23 21:56:47.107655 INFO AppDaemon: Starting API
2023-06-23 21:56:47.109184 INFO AppDaemon: Starting Admin Interface
2023-06-23 21:56:47.109408 INFO AppDaemon: Starting Dashboards
2023-06-23 21:56:47.119742 INFO HASS: Connected to Home Assistant 2023.6.2
2023-06-23 21:56:47.131739 INFO AppDaemon: App 'remocon' added
2023-06-23 21:56:47.132735 INFO AppDaemon: Found 1 active apps
2023-06-23 21:56:47.132984 INFO AppDaemon: Found 0 inactive apps
2023-06-23 21:56:47.133309 INFO AppDaemon: Found 0 global libraries
2023-06-23 21:56:47.133559 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2023-06-23 21:56:47.134141 INFO AppDaemon: Running on port 5050
2023-06-23 21:56:47.168042 INFO HASS: Evaluating startup conditions
2023-06-23 21:56:47.175769 INFO HASS: Startup condition met: hass state=RUNNING
2023-06-23 21:56:47.176173 INFO HASS: All startup conditions met
2023-06-23 21:56:47.240190 INFO AppDaemon: Got initial state from namespace default
2023-06-23 21:56:49.138622 INFO AppDaemon: Scheduler running in realtime
2023-06-23 21:56:49.140193 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2023-06-23 21:56:49.140483 INFO AppDaemon: Adding /config/appdaemon/apps/elco-remocon-net-appdaemon to module import path
2023-06-23 21:56:49.140822 INFO AppDaemon: Adding /config/appdaemon/apps/elco-remocon-net-appdaemon/apps to module import path
2023-06-23 21:56:49.141059 INFO AppDaemon: Adding /config/appdaemon/apps/elco-remocon-net-appdaemon/apps/elco-remocon-net-appdaemon to module import path
2023-06-23 21:56:49.141272 INFO AppDaemon: Adding /config/appdaemon/apps/elco-remocon-net-appdaemon/assets to module import path
2023-06-23 21:56:49.142657 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/hello.py - ignoring
2023-06-23 21:56:49.143223 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/elco-remocon-net-appdaemon/apps/elco-remocon-net-appdaemon/elco-remocon-net-appdaemon.py
2023-06-23 21:56:49.171685 INFO AppDaemon: Loading app remocon using class Remocon from module elco-remocon-net-appdaemon
2023-06-23 21:56:49.173004 INFO AppDaemon: Calling initialize() for remocon
2023-06-23 21:56:49.204383 INFO remocon: Will fetch remocon.net data every 60 min
2023-06-23 21:56:49.207343 INFO AppDaemon: App initialization complete
2023-06-23 21:56:49.211274 INFO remocon: Fetching remocon data...
2023-06-23 21:56:52.022527 INFO remocon: Posting to entities...
2023-06-23 21:56:52.023939 INFO remocon: Using ha_url from app's configuration
2023-06-23 21:56:52.024815 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_outside_temperature'
2023-06-23 21:56:52.025381 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_domestic_hot_water_storage_temperature'
2023-06-23 21:56:52.025928 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_domestic_hot_water_temperature'
2023-06-23 21:56:52.026443 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_domestic_hot_water_reduced_temperature'
2023-06-23 21:56:52.026978 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_domestic_hot_water_storage_mode'
2023-06-23 21:56:52.027505 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_domestic_hot_water_storage_temperature_error'
2023-06-23 21:56:52.028018 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_outside_temperature_error'
2023-06-23 21:56:52.028495 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_has_outside_temperature_probe'
2023-06-23 21:56:52.029201 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_flame_sensor'
2023-06-23 21:56:52.029709 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_has_domestic_hot_water_storage_probe'
2023-06-23 21:56:52.030470 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_heatpump_on'
2023-06-23 21:56:52.031013 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_domestic_hot_water_enabled'
2023-06-23 21:56:52.031616 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_comfort_room_temperature_setpoint'
2023-06-23 21:56:52.032285 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_cool_comfort_room_temperature_setpoint'
2023-06-23 21:56:52.032785 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_cool_reduced_room_temperature_setpoint'
2023-06-23 21:56:52.033272 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_reduced_room_temperature_setpoint'
2023-06-23 21:56:52.033717 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_room_temperature'
2023-06-23 21:56:52.034185 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_desired_room_temperature'
2023-06-23 21:56:52.034731 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/sensor.elco_room_operation_mode_heating'
2023-06-23 21:56:52.035249 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_room_heating_is_active'
2023-06-23 21:56:52.035694 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_room_cooling_is_active'
2023-06-23 21:56:52.036145 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_room_heating_is_request'
2023-06-23 21:56:52.036631 INFO remocon: No connection adapters were found for 'home.janczek.net:8123/api/states/binary_sensor.elco_room_temperature_error'
2023-06-23 21:56:52.037492 INFO remocon: Done fetching remocon data.

No entites created

Hello!

I installed this app following all the steps of the installation guide but no entities are created. Neither in the AppDaemon interface nor in Hassio.

Here's what I have in /config/appdaemon/apps/apps.yaml:

remocon: module: elco-remocon-net-appdaemon class: Remocon plugin: HASS base_url: https://www.remocon-net.remotethermo.com username: !secret remocon_username password: !secret remocon_password gateway_id: !secret remocon_gateway_id bearer_token: !secret remocon_bearer_token ha_url: http://hassio/homeassistant

Connection seems to be OK. I tried to add the ha_url above which give me these logs:

2023-08-03 08:17:15.288838 INFO AppDaemon: Found 2 active apps 2023-08-03 08:17:15.289716 INFO AppDaemon: Found 0 inactive apps 2023-08-03 08:17:15.290606 INFO AppDaemon: Found 0 global libraries 2023-08-03 08:17:15.302295 INFO AppDaemon: Terminating remocon 2023-08-03 08:17:15.307704 INFO AppDaemon: Reloading Module: /config/appdaemon/apps/elco-remocon-net-appdaemon/apps/elco-remocon-net-appdaemon/elco-remocon-net-appdaemon.py 2023-08-03 08:17:15.329490 INFO AppDaemon: Loading app remocon using class Remocon from module elco-remocon-net-appdaemon 2023-08-03 08:17:15.336587 INFO AppDaemon: Calling initialize() for remocon 2023-08-03 08:17:15.343082 INFO remocon: Will fetch remocon.net data every 15 min 2023-08-03 08:17:15.378464 INFO remocon: Fetching remocon data... 2023-08-03 08:17:17.814866 INFO remocon: Posting to entities... 2023-08-03 08:17:17.830932 INFO remocon: Using ha_url from app's configuration 2023-08-03 08:17:17.857895 INFO remocon: Set state on entity sensor.elco_outside_temperature 2023-08-03 08:17:17.880608 INFO remocon: Set state on entity sensor.elco_domestic_hot_water_storage_temperature 2023-08-03 08:17:17.905025 INFO remocon: Set state on entity sensor.elco_domestic_hot_water_temperature 2023-08-03 08:17:17.942952 INFO remocon: Set state on entity sensor.elco_domestic_hot_water_reduced_temperature 2023-08-03 08:17:17.967115 INFO remocon: Set state on entity binary_sensor.elco_domestic_hot_water_storage_mode 2023-08-03 08:17:17.989713 INFO remocon: Set state on entity binary_sensor.elco_domestic_hot_water_storage_temperature_error 2023-08-03 08:17:18.011920 INFO remocon: Set state on entity binary_sensor.elco_outside_temperature_error 2023-08-03 08:17:18.034490 INFO remocon: Set state on entity binary_sensor.elco_has_outside_temperature_probe 2023-08-03 08:17:18.056725 INFO remocon: Set state on entity binary_sensor.elco_flame_sensor 2023-08-03 08:17:18.083247 INFO remocon: Set state on entity binary_sensor.elco_has_domestic_hot_water_storage_probe 2023-08-03 08:17:18.107057 INFO remocon: Set state on entity binary_sensor.elco_heatpump_on 2023-08-03 08:17:18.130764 INFO remocon: Set state on entity binary_sensor.elco_domestic_hot_water_enabled 2023-08-03 08:17:18.153098 INFO remocon: Set state on entity sensor.elco_comfort_room_temperature_setpoint 2023-08-03 08:17:18.178234 INFO remocon: Set state on entity sensor.elco_cool_comfort_room_temperature_setpoint 2023-08-03 08:17:18.201901 INFO remocon: Set state on entity sensor.elco_cool_reduced_room_temperature_setpoint 2023-08-03 08:17:18.240057 INFO remocon: Set state on entity sensor.elco_reduced_room_temperature_setpoint 2023-08-03 08:17:18.270669 INFO remocon: Set state on entity sensor.elco_room_temperature 2023-08-03 08:17:18.295308 INFO remocon: Set state on entity sensor.elco_desired_room_temperature 2023-08-03 08:17:18.318961 INFO remocon: Set state on entity sensor.elco_room_operation_mode_heating 2023-08-03 08:17:18.347393 INFO remocon: Set state on entity binary_sensor.elco_room_heating_is_active 2023-08-03 08:17:18.369628 INFO remocon: Set state on entity binary_sensor.elco_room_cooling_is_active 2023-08-03 08:17:18.406364 INFO remocon: Set state on entity binary_sensor.elco_room_heating_is_request 2023-08-03 08:17:18.448495 INFO remocon: Set state on entity binary_sensor.elco_room_temperature_error 2023-08-03 08:17:18.453926 INFO remocon: Done fetching remocon data.

I have "No data available" in the "Namespace" select list in Appdaemon -> State -> Entites
Is it a problem?

Thanks a lot for your help!

repository not found in HACS

Running all the latest version of HA (2023.10.1 OS 10.5) and HACS (1.33.0), I get a
Repository nechry/elco-remocon-net-appdaemon not found
when calling the repository from HACS through the link provided in the readme.md file. Anything I missed?

No manifest.json

Hey,

When trying to add your repository as custom integration via HACS, it complains that no manifest.json is provided.
Can you add one please? :)

Error fetching data

Thanks for creating the plugin !

I have just setup an Elco THISION MINI 15.3 gas system for heating rooms and water in my house.
I have registered at the https://www.remocon-net.remotethermo.com/ homepage and can see my equipment and stats through the homepage and app.

I have configured your plugin and it seems that the plugin is able to login, but when it try to fetch the data I get a html page back with:


<title>ERROR - Remocon NET</title>
AN ERROR OCCURRED PROCESSING YOUR REQUEST
Please report the following error to the system administrator
ERROR TYPE:
UtilsLib.Diagnostics.ViolatedPreConditionException
ERROR MESSAGE:
Violated Precondition (CheckId: 160902105616)

Any idea what I should look for ?

Stopped working since AppDaemon 0.15.x

Hi Nechry,

Whole Appdaemon configuration has been moved from /config to /addon_configs folder since version 0.15.x. My Remocon sensors stopped working. I tried the following:

I was able to change appdaemon.yaml in /addon_configs folder as follows (changed secrets path and added app_dir):

secrets: /homeassistant/secrets.yaml
appdaemon:
  time_zone: CET
  latitude: 51.725
  longitude: 14.3434
  elevation: 0
  app_dir: /homeassistant/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: http://homeassistant.local:8123
      token: !secret appdaemon_token
http:
  url: http://127.0.0.1:5050
admin:
api:
hadashboard:

I linked your HACS-Backend with the app_dir function. Appdaemon is up and running and adds your module (see below) but the Sensors are not working.

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

Add-on: AppDaemon
Python Apps and Dashboard using AppDaemon 4.x for Home Assistant

Add-on version: 0.15.2
You are running the latest version of this add-on.
System: Home Assistant OS 11.1 (aarch64 / odroid-n2)
Home Assistant Core: 2023.11.3
Home Assistant Supervisor: 2023.11.3

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-appdaemon: starting
s6-rc: info: service init-appdaemon successfully started
s6-rc: info: service appdaemon: starting
s6-rc: info: service appdaemon successfully started
s6-rc: info: service legacy-services: starting
[10:33:42] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
2023-11-24 10:33:46.236904 INFO AppDaemon: AppDaemon Version 4.4.2 starting
2023-11-24 10:33:46.237166 INFO AppDaemon: Python version is 3.11.6
2023-11-24 10:33:46.237331 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml
2023-11-24 10:33:46.237489 INFO AppDaemon: Added log: AppDaemon
2023-11-24 10:33:46.237675 INFO AppDaemon: Added log: Error
2023-11-24 10:33:46.237832 INFO AppDaemon: Added log: Access
2023-11-24 10:33:46.237988 INFO AppDaemon: Added log: Diag
2023-11-24 10:33:46.461881 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2023-11-24 10:33:46.708646 INFO HASS: HASS Plugin Initializing
2023-11-24 10:33:46.708903 INFO HASS: HASS Plugin initialization complete
2023-11-24 10:33:46.709424 INFO AppDaemon: Initializing HTTP
2023-11-24 10:33:46.709872 INFO AppDaemon: Using 'ws' for event stream
2023-11-24 10:33:46.713684 INFO AppDaemon: Starting API
2023-11-24 10:33:46.716230 INFO AppDaemon: Starting Admin Interface
2023-11-24 10:33:46.716755 INFO AppDaemon: Starting Dashboards
2023-11-24 10:33:46.733064 INFO HASS: Connected to Home Assistant 2023.11.3
2023-11-24 10:33:46.736729 INFO AppDaemon: Starting Apps with 0 workers and 0 pins
2023-11-24 10:33:46.737218 INFO AppDaemon: Running on port 5050
2023-11-24 10:33:46.778903 INFO HASS: Evaluating startup conditions
2023-11-24 10:33:46.784431 INFO HASS: Startup condition met: hass state=RUNNING
2023-11-24 10:33:46.784746 INFO HASS: All startup conditions met
2023-11-24 10:33:46.817995 INFO AppDaemon: Got initial state from namespace default
2023-11-24 10:33:48.746734 INFO AppDaemon: Scheduler running in realtime
2023-11-24 10:33:48.748924 INFO AppDaemon: Adding /homeassistant/appdaemon/apps to module import path
2023-11-24 10:33:48.749305 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/elco-remocon-net-appdaemon to module import path
2023-11-24 10:33:48.749649 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/elco-remocon-net-appdaemon/assets to module import path
2023-11-24 10:33:48.749968 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/elco-remocon-net-appdaemon/apps to module import path
2023-11-24 10:33:48.750269 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/elco-remocon-net-appdaemon/apps/elco-remocon-net-appdaemon to module import path
2023-11-24 10:33:48.751954 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/elco-remocon-net-appdaemon/apps/elco-remocon-net-appdaemon/elco-remocon-net-appdaemon.py - ignoring
2023-11-24 10:33:48.752808 INFO AppDaemon: App initialization complete

Would appreciate any help or hint.

Kind regards,
Robert

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.