Giter VIP home page Giter VIP logo

homebridge-millheat's Introduction

npm version

homebridge-millheat

Homebridge plugin for Mill heaters through MillNorway API

Installation

npm install homebridge-millheat -g

Configuration

{
    "platforms": [
        {
            "platform": "millheat",
            "name": "millheat",
            "username" : "your@email",
            "password": "hunter2",
            "ignoredDevices"[]
        }
    ]
}

Features

Modes:

  • Independent devices: HEAT, OFF
  • Room assigned devices: AUTO, HEAT, OFF

If set to AUTO, you can't change the target temperature. This is set by room program. If set to HEAT, it will be set to independent mode, and you can adjust the temperature. If set to AUTO again it will return to room assigned program.

Caveats

  • Only tested with room assigned heaters
  • Only tested with celcius as unit
  • Tested with Node.js Version v12.15.0 and homebridge 0.4.50

homebridge-millheat's People

Contributors

torandreroland avatar dependabot[bot] avatar andyno avatar ttopholm avatar articate avatar

Stargazers

 avatar  avatar Markus Wilhelmsen avatar  avatar Vegard Hoff Walmsness avatar  avatar Henrik Sandberg avatar  avatar  avatar Edward Milstein avatar  avatar Bjarne Tvedten avatar Larry Gadea avatar  avatar

Watchers

James Cloos avatar Bjarne Tvedten avatar  avatar  avatar  avatar  avatar  avatar

homebridge-millheat's Issues

Can't toggle first gen oven

I have two Mill 1200w ovens, one from each generation. This plugin works perfect with the 2nd gen oven, but when trying to toggle the second gen oven i get this error:

[26.1.2021, 13:27:08] [millheat] MillHeater[API] Couldn't perform command:error: { errorCode: 500, error: invalid parameters, subDomain length and physicalId length or deviceId should be greater than 0, and reqMsg should not be null, description: undefined }

[26.1.2021, 13:27:08] [millheat] MillHeater[6b4142e2-e97b-4851-a319-b0fcab23709b] couldn't set power to true

Both works fine in the Mill app. Could it be related to a mac address starting with a lot of zeros on the first gen oven?

Thanks!

Oppdaterer ikke status når Tibber smartstyring slår den av eller på

Hei og takk for sist. For noen mnd siden så gjøre du en endring slik at status på pluggen ble oppdatert i HomeKit når Tibber slår den av eller på ved smart styring. Slik plugin er nå så endrer den ikke status i HomeKit når den slås av eller på. Hadde du giddet å sett litt på dette, så hadde jeg vært veldig takknemlig. På forhånd takk for hjelpen. Kurt

Characteristic value 1 is not contained in valid values array.

Hei

Får opp en feilmelding i plugin.

This plugin generated a warning from the characteristic 'Target Heater-Cooler State': characteristic value 1 is not contained in valid values array.

Har du mulighet til å se på dette hadde det vært kjempeflott.

Kurt

Not able to change program

Hi, I have one Mill WiFi heater and two Mill Wifi Sockets (all three have been assigned to rooms and heating programs chosen). I have tried to get these to work in HomeKit using both the Homey app/Homeykit and this Homebridge plugin.

In both cases, the current temperature is sent correctly to the Home app, but changing the temperature or program in the Home app has no effect on the actual settings in the Millheat app. This means I cannot set up automations in HomeKit (I want to turn them off when window sensors detect an open window).

Is this simply something that is not possible or is there a trick I haven't discovered?

MillHeater[API] Couldn't perform command:error

[3.5.2021, 08:51:55] [millheat] MillHeater[API] Couldn't perform command:error: { errorCode: 500, error: invalid parameters, subDomain length and physicalId length or deviceId should be greater than 0, and reqMsg should not be null, description: undefined }
[3.5.2021, 08:51:55] [millheat] MillHeater[ce32f9bc-b41e-4e87-aa33-b4e0fa860a67] couldn't set power to true

Error: The requested platform 'millheat' was not registered by any plugin.

Hva gjør jeg feil her?

Error: The requested platform 'millheat' was not registered by any plugin.
at PluginManager.getPluginForPlatform (C:\Users\eirik\AppData\Roaming\npm\node_modules\homebridge\src\pluginManager.ts:224:15)
at C:\Users\eirik\AppData\Roaming\npm\node_modules\homebridge\src\server.ts:387:37
at Array.forEach ()
at Server.loadPlatforms (C:\Users\eirik\AppData\Roaming\npm\node_modules\homebridge\src\server.ts:374:27)
at Server.start (C:\Users\eirik\AppData\Roaming\npm\node_modules\homebridge\src\server.ts:153:29)
at cli (C:\Users\eirik\AppData\Roaming\npm\node_modules\homebridge\src\cli.ts:80:10)
at Object. (C:\Users\eirik\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)

Warning: "This plugin slows down Homebridge."

Hi, today I see a number of warnings, like this one:

"This plugin slows down Homebridge. The read handler for the characteristic 'Heating Threshold Temperature' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info."

Any idea what is causing this?

Control WiFi Socket

Hi, I find that this plugin works well to control an actual Mill panel heater, but not for the Mill smart plug for connecting an old-fashioned panel heater. It reads the temperature from the socket correctly, but not the program it is set to and cannot change the program. Is there any to add this functionality to the plugin?

Wrong temperature format for gen 3 panel heater

Hi, after having had a gen 2 heater for a while, I today purchased a gen 3 heater. It comes across into HomeKit, but the temperature is reported to be 100 degrees. In the Homebridge log, I get the following:

[homebridge-millheat] This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: number 1990 exceeded maximum of 100. See https://git.io/JtMGR for more info.

Any idea what causes this?

Errors Related to turning off a Gen 3 Mill Panel heater

Got the two following errors at the same time.

[millheat] MillHeater[API] Couldn't perform command:error: { errorCode: 500, error: invalid parameters, subDomain length and physicalId length or deviceId should be greater than 0, and reqMsg should not be null, description: undefined }
[millheat] MillHeater[ce52c14e-fc58-4ff5-88f9-0587839a0ef1] couldn't set power to false

UnhandledPromiseRejectionWarning

Hello, strugling with UnhandledPromiseRejectionWarning.

The config I use is simular to the default example.

{ "platform": "millheat", "name": "millheat", "username" : "your@email", "password": "hunter2", "ignoreDevices": [] }

Error:
(node:18552) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined at MillPlatform.getAllHeaters (/usr/local/lib/node_modules/homebridge-millheat/src/platform.js:50:54) at processTicksAndRejections (internal/process/task_queues.js:89:5) at MillPlatform.accessories (/usr/local/lib/node_modules/homebridge-millheat/src/platform.js:77:21) (node:18552) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:18552) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ReadMe's config has a typo

The README.md says:
"ignoreDevices": [] under config

I checked the source code, and it should be ignoredDevices. Didn't get why it didn't work, so it could be nice to fix this typo.

Socket not returning to regular program after heating at a low temp

First off, thank you so much for creating this plugin!

How to reproduce:

  1. Make sure the socket is to "Auto" through the Home app
  2. Set the socket to manually 'heat' at a low temp (colder than the room)
  3. Set the socket back to Auto. The socket will turn on for a second and then off. It will not return to the regular program until the socket is turned off or set to heat at a high temp, then set to Auto.

Background
I have a scene for (essentially) turning off my ovens/sockets. This scene sets the sockets to heat at 16 degrees celsius. This is used when I go to bed or leave the house. During the night, an automation sets the sockets back to 'Auto' so they follow the schedule set with the Mill app. During the last few weeks, the sockets have failed to turn back on and instead stayed off, resulting in a cold morning...

My setup:

  • 3 Mill WiFi Socket. One is right next to the router. Firmware Revision 1.1.2.
  • iPhone 11 Pro, iOS 14.3 and 14.4

Thanks!

Gen 3 heatet not working

Hi, my gen 3 heater shows 100 degrees in the room and i can’t change the temperature.
I’ve tried resetting the plugins but without any difference

Heater not responding after reboot

I am seeing an issue where my Radiator will stop responding to Homekit after a couple of hours after Homebridge is rebooted.

The Homebridge logs display:

[millheat] MillHeater[827ab113-f148-431b-9719-69b5ec18e564] couldn't update device

[millheat] MillHeater[API] Couldn't perform command:error: { errorCode: 3515, error: access token expire, description: undefined }

Any idea what would be causing the access token to expire?

Thanks!

UnhandledPromiseRejectionWarning

I am receiving the following error:

(node:25956) UnhandledPromiseRejectionWarning: ReferenceError: device is not defined
    at MillPlatform.getAllHeaters (/usr/local/lib/node_modules/homebridge-millheat/src/platform.js:39:52)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:25956) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:25956) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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.