Giter Site home page Giter Site logo

robbinjanssen / home-assistant-ojmicroline-thermostat Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 4.0 770 KB

Home Assistant integration for an OJ Microline Wifi Thermostat

License: MIT License

Python 100.00%
climate custom-component hacs home-assistant integration oj-electronics oj-microline owd5 thermostat

home-assistant-ojmicroline-thermostat's People

Contributors

adamjernst avatar dependabot[bot] avatar renovate[bot] avatar robbinjanssen avatar viper5000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

home-assistant-ojmicroline-thermostat's Issues

Failed to call service climate/set_hvac_mode. OJMicrolineThermostat.async_set_hvac_mode() got an unexpected keyword argument 'hvac_mode'

When changing the mode from heat to auto or back in the dashboard UI I get the following error:

Failed to call service climate/set_hvac_mode. OJMicrolineThermostat.async_set_hvac_mode() got an unexpected keyword argument 'hvac_mode'

Any use of the button at the bottom of the card produces the error. The same error also occurs when clicking the three card dots and instead controlling via the dropdown menu.

This error is 100% reproducible for me. Simply change the heating mode and it will error.

https://github.com/robbinjanssen/home-assistant-ojmicroline-thermostat/blob/d22d5b4fe9cf3d955ad214b6250f4bf57028fcd6/custom_components/ojmicroline_thermostat/climate.py#L284C1-L284C66

I wonder if this would fix the issue:

async def async_set_hvac_mode(self, _hvac_mode: str) -> bool:

->

async def async_set_hvac_mode(self, hvac_mode: str) -> bool:

[Sensorname] become unavailable

Roughly every 3 minutes, the sensor will become unavailable with the following entries in the log file:

[Sensorname] became unavailable
4:05:27 AM - In 1 second
[Sensorname] Online became unavailable
4:05:27 AM - In 1 second
[Sensorname] Heating became unavailable
4:05:27 AM - In 1 second

It resumes after about a minute.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • ⬆️ Lock file maintenance

Detected dependencies

github-actions
.github/workflows/draft-release.yaml
  • release-drafter/release-drafter v6.0.0
.github/workflows/hacs.yml
  • actions/checkout v4.1.7
.github/workflows/hassfest.yaml
  • actions/checkout v4.1.7
.github/workflows/issues.yaml
  • dessant/lock-threads v5.0.1
  • actions/stale v9.0.0
.github/workflows/linting.yaml
  • actions/checkout v4.1.7
  • actions/setup-python v5.1.0
  • actions/checkout v4.1.7
  • actions/setup-python v5.1.0
  • actions/checkout v4.1.7
  • actions/setup-python v5.1.0
  • actions/checkout v4.1.7
  • actions/setup-python v5.1.0
  • actions/checkout v4.1.7
  • actions/setup-python v5.1.0
.github/workflows/sync-labels.yaml
  • actions/checkout v4.1.7
  • micnncim/action-label-syncer v1.3.0
.github/workflows/verify-pr-labels.yaml
  • jesusvasquez333/verify-pr-label-action v1.4.0
pep621
pyproject.toml
  • poetry-core >=1.0.0
poetry
pyproject.toml
  • python >=3.11,<3.13
  • voluptuous ^0.15.0
  • codespell 2.3.0
  • mypy 1.10.1
  • pre-commit 3.7.1
  • pre-commit-hooks 4.6.0
  • pylint 3.2.4
  • ruff 0.4.10
  • yamllint 1.35.1
  • async-timeout 4.0.3

  • Check this box to trigger a request for Renovate to run again on this repository

Won't stay at manual / none

Detailed description

Thanx for creating this! Just installed via HACS and installation went well. I have a microtemp mwd5 thermostat from micromatic.
When adjusting temperature, the thermostat will always revert to comfort mode, and them resume plan after 4 hours. When i try to set none /manual mode it will revert to 20c, and then back to comfort. I wish to control everything manually

Context

Trying to adjust temperature

Diagnostics

The thermostat will after a while switch over to auto / comfort.

"Copy here the code or upload the file"

Failed to call service climate/set_temperature. [Error/Timeout] occurred while communicating with the OJ Microline API.

I on occasion get the following two error messages:

Failed to call service climate/set_temperature. Error occurred while communicating with the OJ Microline API.

and

Failed to call service climate/set_temperature. Timeout occurred while communicating with the OJ Microline API.

Steps to produce is simply to change the set temperature or issue other commands via the card on the dashboard. It's unclear to me when precisely it happens, but it happens fairly regularly for me (I'll try to narrow this down.)

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.