Git Product home page Git Product logo

hassio-addons's People

Contributors

carlosatta avatar mirkochip88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hassio-addons's Issues

Addon does not ... add in HASSIO

Hi, I added in HASSIo 0.90.1 the addon (HASSIIo is on NUC)

Carlo Hass.io Add-ons
https://github.com/carlosatta/hassio-addons

but no addon is shown, in the log I receive as below


19-04-04 16:22:13 INFO (MainThread) [hassio.addons.git] Clone add-on https://github.com/carlosatta/hassio-addons repository
19-04-04 16:22:15 WARNING (MainThread) [hassio.addons.data] Can't read /data/addons/git/4f82ad90/motion/config.json: required key not provided @ data['arch']. Got None
19-04-04 16:22:15 WARNING (MainThread) [hassio.addons.data] Can't read /data/addons/git/4f82ad90/tor/config.json: required key not provided @ data['arch']. Got None
19-04-04 16:22:15 WARNING (MainThread) [hassio.addons.data] Can't read /data/addons/git/c0e5c91d/hassio_meross/config.json: required key not provided @ data['arch']. Got None

Addon crashes

Hi,
first of all thank for your work.
Secondly, I am using your addon with two MSS310 and a MSS425.
Randomly, the addon crashes. In the following the extract of the log reporting the issue. I was not able to find the full log.

Regards

usr/src/hassio_meross/lib/device.js:101
throw new Error(error);
^
Error: Error: Timeout
at Object.meross.getControlElectricity [as callback] (/usr/src/hassio_meross/lib/device.js:101:23)
at Timeout.waitingMessageIds.(anonymous function).timeout.setTimeout [as _onTimeout] (/usr/src/hassio_meross/node_modules/meross-cloud/index.js:292:55)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-08T11_08_33_256Z-debug.log

Wanting to help provide support on MSS110

I have two Meross MSS110 that are single plugs, no sensors.

The addon can recognize these devices but seems to have some errors.

Initizializing the device 1712216531717925131334298f10b237.
Initizializing the device 1712215321760125131334298f10b22d.
[Device][John’s Corner] Device 1712216531717925131334298f10b237: connected
    [Switch][John’s Corner] Preparation.
[Device][John’s Desk] Device 1712215321760125131334298f10b22d: connected
    [Switch][John’s Desk] Preparation.
[Device][John’s Corner] The channel 0 have not abilities to be a sensor
[WARN][Switch][John’s Corner] Impossibile retrieve real status: Cannot read property 'togglex' of undefined.
    [Switch][John’s Corner] Message send to homeassistant/switch/1712216531717925131334298f10b237_0/state.
    [Switch][John’s Corner] Message send to homeassistant/switch/1712216531717925131334298f10b237_0/config.
    [Switch][John’s Corner] State send.
    [Switch][John’s Corner] Config send.
[Device][John’s Desk] The channel 0 have not abilities to be a sensor
    [Switch][John’s Corner] Listening on base topic homeassistant/switch/1712216531717925131334298f10b237_0/.
    [Switch][John’s Corner] Message arrived to homeassistant/switch/1712216531717925131334298f10b237_0/state.
    [Switch][John’s Corner] Message arrived to homeassistant/switch/1712216531717925131334298f10b237_0/config.
[WARN][Switch][John’s Desk] Impossibile retrieve real status: Cannot read property 'togglex' of undefined.
    [Switch][John’s Desk] Message send to homeassistant/switch/1712215321760125131334298f10b22d_0/state.
    [Switch][John’s Desk] Message send to homeassistant/switch/1712215321760125131334298f10b22d_0/config.
    [Switch][John’s Desk] State send.
    [Switch][John’s Desk] Config send.
    [Switch][John’s Desk] Listening on base topic homeassistant/switch/1712215321760125131334298f10b22d_0/.
    [Switch][John’s Desk] Message arrived to homeassistant/switch/1712215321760125131334298f10b22d_0/state.
    [Switch][John’s Desk] Message arrived to homeassistant/switch/1712215321760125131334298f10b22d_0/config.
[Device][John’s Corner] Cannot read property 'channel' of undefined

Using Node-Red debug, I viewed and then published this JSON to try and turn on the switch.
{"name":"John’s Corner","state":1,"device":{"name":"John’s Corner","sw_version":"1.1.26","identifiers":["1712216531717925131334298f10b237"]}}

to the topic
homeassistant/switch/1712215321760125131334298f10b22d_0/state

But this JSON payload did not turn on the switch. If I turn on the switch from the Meross app, the state does not change to "1" in my debug viewer.

I used a man in the middle proxy to see that when I turn on the switch from the app, this is the raw data:

POST http://192.168.x.xxx/config HTTP/1.1
Host: 192.168.x.xxxx
Accept: */*
AppLanguage: en
Authorization: Basic xxxxxx
Connection: keep-alive
AppVersion: 1.4.4
Accept-Encoding: gzip, deflate
Accept-Language: en-US;q=1
Content-Type: application/json
vender: meross
Content-Length: 270
User-Agent: intellect_socket/1.4.4 (iPhone; iOS 12.1.2; Scale/2.00)
Connection: keep-alive

{"payload":{"toggle":{"onoff":1}},"header":{"messageId":"c6262xxxxxxxxx688b232","method":"SET","from":"http:\/\/192.168.x.xxx\/config","namespace":"Appliance.Control.Toggle","timestamp":1548282093,"sign":"87998xxxxxxxxxxxc73143d01bb406d1f7","payloadVersion":1}}

The JSON data is here:

header
  from=http://192.168.x.xxx/config
  messageId=c626291xxxxxxxxxxxxxxe688b232
  method=SET
  namespace=Appliance.Control.Toggle
  payloadVersion=1
  sign=87998b841axxxxxxxxxxxxb406d1f7
  timestamp=1548282093
payload
  toggle
    onoff=1

I am not a programmer but I would like to help if it is necessary or feasible. Thank you for your work on this so far.

Meross addon fail to start

Hello Carlo,

Your addon for home assistant is no longer working, every time I try to start it I receive the following log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
ifelse: fatal: unable to exec /run.sh: Exec format error
[cmd] /run.sh exited 126
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

I'm on hassio 106.6.

MSL120 Bulb support

I have two of these bulbs and I would love to know how I can help to get compatibility with Bulbs into this component.

Please let me know how I can help.

set up from scratch

i was wondering if you could add in the documentation all the necessary step to setup this addon and dependencies , starting from scratch on Hass.io , and whithout any MQTT broker already set up

Not activating MSS310AU switch

Sensors for a MSS310AU are working, but activating the switch seems to fail.

There is an error at startup:
[WARN][Switch][Exhaust Matty Troy Bathroom] Impossibile retrieve real status: Cannot read property 'togglex' of undefined.

Switching seems to generate this error:

Error: Timeout
    at Timeout.waitingMessageIds.(anonymous function).timeout.setTimeout [as _onTimeout] (/usr/src/hassio_meross/node_modules/meross-cloud/index.js:292:64)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Error: Timeout
    at Timeout.waitingMessageIds.(anonymous function).timeout.setTimeout [as _onTimeout] (/usr/src/hassio_meross/node_modules/meross-cloud/index.js:292:64)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Error: Timeout
    at Timeout.waitingMessageIds.(anonymous function).timeout.setTimeout [as _onTimeout] (/usr/src/hassio_meross/node_modules/meross-cloud/index.js:292:64)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Error: Timeout
    at Timeout.waitingMessageIds.(anonymous function).timeout.setTimeout [as _onTimeout] (/usr/src/hassio_meross/node_modules/meross-cloud/index.js:292:64)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

Let me know what information you need.

[hassio-meross] Sensors

Hello,
I’ve updated to 0.1.2 and I think that consumption and intensity have been inverted !
For the consumption, I still have the issue where it takes the value of an old day. I wrote a python script a few weeks ago to check the data and get the data of current day with the format dd-mm-yyyy. But I don’t know if this can be adapted to your addon. Do you want to take a look at it ?

MSS560 Support

I have a Meross MSS560 Dimmer switch. The component works great to turn the device on or off, but was trying to see if there is a way to add support for the luminance attribute to use as a dimmer. The log below shows it uses a scale of 0-100 for lightning. Any help or guidance on how to implement would be appreciated. I id is altered for privacy below.

Not mapped ability Appliance.Control.Light for the device 1810262975985129085634298XXXXXXX.
{ light:
{ capacity: 4, channel: 0, rgb: -1, temperature: -1, luminance: 1 } }
Not mapped ability Appliance.Control.Light for the device 1810262975985129085634298XXXXXXX.
{ light:
{ capacity: 4,
channel: 0,
rgb: -1,
temperature: -1,
luminance: 100 } }
Not mapped ability Appliance.Control.Light for the device 1810262975985129085634298XXXXXXX.
{ light:
{ capacity: 4,
channel: 0,
rgb: -1,
temperature: -1,
luminance: 80 } }

Sensor consumption and Sensor current equal to 0

Great plugin, but i have sensor consumption and sensor current equal to 0.
This is published in mqtt:
{"name":"rack - Sensor consumption","state":"0","device":{"name":"rack","sw_version":"2.1.9","identifiers":["18110592913563251a0934298f178dba"]}}"

"{"name":"rack - Sensor current","state":"0","device":{"name":"rack","sw_version":"2.1.9","identifiers":["18110592913563251a0934298f178dba"]}}"

Power and voltage are ok.
Thanks

[hassio-meross] Start on bootstrap

when I restart Home Assistant, the Meross plugin didn’t start automatically, but i’ve set “Start on boot” on. If i start manually all switches (minus my MSS310s) update their status…

MSG100 not working

Does the MSG100 work with hassio_meross? It is the smart garage door opener. It appears in my MQTT broker, but when I try to operate it, nothing happens.

Here are the logs from hassio-meross:
Initizializing the device 18120167058930261h0134298f13c495. [Device][Garage Door] Device 18120167058930261h0134298f13c495: connected [Switch][Garage Door] Preparation. [MQTT] Connect to the broker. [Device][Garage Door] The channel 0 have not abilities to be a sensor [Switch][Garage Door] Message send to homeassistant/switch/18120167058930261h0134298f13c495_0/state. [Switch][Garage Door] Message send to homeassistant/switch/18120167058930261h0134298f13c495_0/config. [Switch][Garage Door] State send. [Switch][Garage Door] Config send. [Switch][Garage Door] Listening on base topic homeassistant/switch/18120167058930261h0134298f13c495_0/. [Switch][Garage Door] Message arrived to homeassistant/switch/18120167058930261h0134298f13c495_0/state. [Switch][Garage Door] Message arrived to homeassistant/switch/18120167058930261h0134298f13c495_0/config. [Switch][Garage Door] Message arrived to homeassistant/switch/18120167058930261h0134298f13c495_0/command. [Switch][Garage Door] Message send to homeassistant/switch/18120167058930261h0134298f13c495_0/state. [Switch][Garage Door] State send. [Switch][Garage Door] Message arrived to homeassistant/switch/18120167058930261h0134298f13c495_0/state. [Switch][Garage Door] Message arrived to homeassistant/switch/18120167058930261h0134298f13c495_0/command. [Switch][Garage Door] Message send to homeassistant/switch/18120167058930261h0134298f13c495_0/state. [Switch][Garage Door] State send. [Switch][Garage Door] Message arrived to homeassistant/switch/18120167058930261h0134298f13c495_0/state.

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.