Code Monkey home page Code Monkey logo

node-red-contrib-energenie-ener314rt's People

Contributors

achronite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-red-contrib-energenie-ener314rt's Issues

Separate node addon from node-red implementation

With 0.3.0 the C code has now be completely encapsulated in a node.js addon which could be used without node-red. This enhancement is to separate the code base into two dependent repositories and distributions to allow non node-red users to also use the node addon.

Can these nodes detect button presses on a remote?

Sorry this is a newbie question not an issue but I don't know where else to ask.

Can these nodes and a ENER314-RT monitor/detect a button press from the ENER002-G remotes?

It would be useful if these button presses could be monitored and then used for other things either together with their device pairing or as a complete standalone remote.

I have searched around for the answer to this but couldn't find anything.

Control/OOK Receive 0 (all in zone) strange behaviour

Sorry, me again ;-(

I am testing a set of 4 of the basic sockets type ENER002. I have paired them OK as Zone 2 switches 1,2,3,4. The 4 control nodes work them all correctly individually.

I have also set up a control node for "all on" or "all off" using Zone 2, switch number 0. Within the control node it works fine when I hit the "mortar board" and "power" buttons, all turn on or off fine. But if I then send a payload of true or false to the same node only switch 1 turns on or off. I have also tried sending a payload with payload.switchNum set to 0 and payload.on set to true of false but this also just switches switch number 1.

Another strange thing is that in trying to debug this I ran node-red-log in a PuTTY session but am now getting no [info] level output when these nodes operate other than these below initially. I was getting log info the other day OK, what could I have done to turn it off?!!

[info] [energenie-board:ENER314-RT] ener314rt: radio initialised
{info] [energenie-board:ENER314-RT] starting monitor thread, timeout=5000

Not an issue, but a question please.

Have you done any work on a node-red module for controlling Energenie products vis the proprietary web based interface. The reason I ask is that I have some legacy Energenie devices that I would like to integrate into my home node-red network, that is now predominately Tasmota/Sonoff based but with some EweLink devices. Otherwise, do you want some cheap Energenie power sockets , RF remotes, and 2 light switches :)

fix raw output node

Looks like the raw node has been broken in v0.3:

[warn] [ener314rt-raw:8103ab8.371eb58] Sending 142,232,238,136,142,232,238,136,142,232
node-red[1155]: ../src/node_buffer.cc:211:char* node::Buffer::Data(v8::Localv8::Value): Assertion `val->IsArrayBufferView()' failed.
Aborted

Add MiHome thermostat support

hi, i have some data from debug for the thermostat MIHO069, the debug messages are not as consistent as the radiator valves, it shows the set temperature more often than the room temperature.

openThings_devicePut() device added: 1:14499461
openThings_receive: Returning: {"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776900,"UNKNOWN_0x59":0}
test.js-cb: received OTmsg={"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776900,"UNKNOWN_0x59":0}
@openThings_receive: Returning: {"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776906,"MOTION_DETECTOR":2,"UNKNOWN_0x2a":0}
test.js-cb: received OTmsg={"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776906,"MOTION_DETECTOR":2,"UNKNOWN_0x2a":0}
test.js: switching 1:1:false

openThings_receive: Returning: {"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776992,"UNKNOWN_0x59":0}
test.js-cb: received OTmsg={"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776992,"UNKNOWN_0x59":0}
@openThings_receive: Returning: {"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776997,"REL_HUMIDITY":74,"MOTION_DETECTOR":3,"UNKNOWN_0x2a":1,"UNKNOWN_0x4b":18.000000} //this is the set temperature

*openThings_receive: Returning: {"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602777265,"REL_HUMIDITY":74,"UNKNOWN_0x2a":1}

test.js-cb: received OTmsg={"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602778445,"TEMPERATURE":21.187500,"REL_HUMIDITY":74,"MOTION_DETECTOR":3,"UNKNOWN_0x2a":1,"UNKNOWN_0x4b":18.500000}

openThings_receive: Returning: {"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776227,"BATTERY_LEVEL":3.068848,"UNKNOWN_0x2a":1}
test.js-cb: received OTmsg={"deviceId":14499461,"mfrId":4,"productId":18,"timestamp":1602776227,"BATTERY_LEVEL":3.068848,"UNKNOWN_0x2a":1}

Add msg.payload.on parameter for switching devices

Add support for the parameter 'msg.payload.on' boolean true/false values to switch on/off devices. This is to increase alignment to the HueMagic nodes.

Support should be added for the following nodes:

  • Control
  • Dimmer
  • Smart Plug+

Existing on/off request message types should still be supported.

Support for ENER314?

Hey @Achronite,
Thank you for providing this package to the community. What was the difficulty you had in implementing ENER314 support?
From what I can see, it just needs its data pins (D0-D3) to be set to form a 4-bit binary code and there's a table of permissible codes in the documentation.

All the best,
Dax.

Rename 'Control & Monitor' node to 'Thermostat'

The current full range of Energenie Control & Monitor devices consists of:

  • Mi|Home Smart Plug+
  • Mi|Home Smart Radiator Valve (eTRV)
  • Mi|Home Thermostat

As there are now specific nodes for the Smart Plug+ and the eTRV it makes sense to rename the remaining 'Control & Monitor' node to 'Thermostat' and make it specific for the Thermostat.

MIH0032 - PIR Sensor Trigger Causing Buffer Overflow

Hi,

First day using NodeRed with the ENER314-RT integration which works perfectly with my Light Switches and Whole Home Monitor, Ive just added one of my PIR Sensors to my Flow and whenever the device triggers that their is motion NodeRed Crashes out. Im unable to find any cause behind it other than what is output in the logs.

8 Jan 19:42:51 - [info] [server:Home Assistant] Connecting to https://hassio.xyz.co.uk
8 Jan 19:42:52 - [info] [server:Home Assistant] Connected to https://hassio.xyz.co.uk
*** buffer overflow detected ***: terminated
nodered.service: Main process exited, code=dumped, status=6/ABRT
nodered.service: Failed with result 'core-dump'.
nodered.service: Consumed 18.837s CPU time.
nodered.service: Scheduled restart job, restart counter is at 2.
Stopped Node-RED graphical event wiring tool.
nodered.service: Consumed 18.837s CPU time.
Started Node-RED graphical event wiring tool.
8 Jan 19:43:41 - [info]

Running:
RPI 3
Ubuntu 22.10
Node-RED version: v3.0.2
Node.js version: v18.7.0
Linux 5.19.0-1011-raspi arm LE

Thanks in advance

TypeError: Cannot read property 'push' of undefined

Changing the configuration of the board can result in error:
[error] [energenie-board:9dd8e050.e3b85] TypeError: Cannot read property 'push' of undefined

This error can be temporarily fixed by restarting node-red after a configuration change

Add specific support for MiHome House Monitor

Increase support for House monitor (MIHO006) by:

  • Replace 'Waiting...' node status text in Monitor Node with something more appropriate once a message is received
  • Add MiHome House Monitor icon to icons folder so that it can be used in-place of socket

Duplicate Openthings Listing

I'm seeing a duplicate Openthings listing, which is persistent after reboot.
Would you know how to remove it, as it pops up a warning on each Deployment.
image

Testing of MiHome Thermostat (MIHO069)

I could not manage to send any commands to Thermostat however successfully received messages from Thermostat. I have tried commands like following:
Setting temperature : { "command": 244, "data": 17 }
Identify : { "command": **191}

Also, noticed that Thermostat sends the TARGET_TEMP only when target temperature changes (either due to schedule on the MiHome Web/App or Manual change via Web/App). Is there any way to get the target temperature when needed? It seems mihome hub can wake up and send the commands to the Thermostat whenever needed.

Add support for home assistant via node-red

Add support for home assistant (hass.io) via the home assistant node-red module.

Initial tests are failing, I suspect this could be due to access restrictions to GPIO / SPI.

TypeError: Cannot read property 'log' of undefined

Hi
I have recently bought the energenie ENER314rt board for the raspberry pi. I am just trying to control a blue socket with the module and node-red but I seem unable to get it to work.
I am using a newly installed pi, with node-red v1.3.3 I loaded your module using npm and can see all the blocks.
I can double click into the OOK blue block, learn and use the button in it to turn the socket on and off, but if I deploy a flow I receive the following error TypeError: Cannot read property 'log' of undefined
Now I may be new to node-red but I thought I could connect your OOK block to an inject block and just pass a boolean true to turn it on, have also tried a number 1 and a string 1. Am I just doing something wrong. I would be really grateful for some pointers.
I am trying to use the whole home energy monitor to monitor my solar panels and then using an OOK socket to turn on a washing machine.

Only emit monitor msgs to target device

Currently when a valid message is received on the radio device it is emitted to all monitor devices. This enhancement is to send device specific emits instead.

Queued commands for MIHO013 eTRV

I cannot seem to queue commands for MIHO013 eTRV, I have tried having two instances of the same node, but I see this is a limitation.

Can I check this is correct?

image

image

Create separate process to handle Rx/Tx

Blocking on the Rx in C causes problems with the node.js thread pool as it is against the async paradigm of node.js. This enhancement is to fork or spawn a permanent thread/process to handle all of the communication with the radio adaptor. This is to increase the chance of hitting the 200ms Rx window that the eTRVs have.

This change is not trivial, and will require significant refactoring.

MIHO010 doesn't dim

I'm new to Energenie and these nodes and have just set up a very basic system with the ENER314_RT board and a MIHO010 dimmer.

On and Off works OK, but I can't get dim to work.

I've tried payload as 4 and 40 (numbers not strings) payload.brightness as the same but the lamps stays at full brightness regardless. The dimmer node itself updates with the correct brightness underneath but the bulb brightness does not adjust. I'm using an old 60W incandescent bulb for testing.

Make C&M Node be specific for Smart Plug+

The Control & Monitor node is not generic enough. It should be updated to reflect that it is designed for a monitor/switch device, especially as a new generic C&M node will be released in v0.4.

This change includes:

  • Rename all uses of 'Adapter Plus' to 'Smart Plug+' (representing the new energenie device name for MIHO005)
  • Rename the 'Control & Monitor' node to be 'Smart Plug+'
  • Update README

MIHO013 eTRV: VALVE_STATE

I cannot see when/which commands are needed to make the MIHO013 eTRV will return the "VALVE_STATE", can you please confirm?

Software failed to install

I'm a noob to this so need some plain English hand holding on this.

I just installed the energenie-ener314rt module, brand new from energenie. In other words I plugged it into my raspberry pi which is running both hassio and node red through the hassio apt.

This is the LOG of my failed installation, any help would be appreciated

Thanks

Mike

2020-04-27T15:02:11.030Z Install : node-red-contrib-energenie-ener314rt 0.3.8

2020-04-27T15:02:12.171Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2020-04-27T15:02:45.285Z [out]
2020-04-27T15:02:45.285Z [out] > [email protected] install /config/node-red/node_modules/mdns
2020-04-27T15:02:45.285Z [out] > node-gyp rebuild
2020-04-27T15:02:45.285Z [out]
2020-04-27T15:02:49.767Z [err] gyp
2020-04-27T15:02:49.770Z [err]
2020-04-27T15:02:49.771Z [err] ERR!
2020-04-27T15:02:49.772Z [err]
2020-04-27T15:02:49.772Z [err] build error
2020-04-27T15:02:49.773Z [err]
2020-04-27T15:02:49.777Z [err] gyp
2020-04-27T15:02:49.778Z [err] ERR! stack
2020-04-27T15:02:49.778Z [err] Error: not found: make
2020-04-27T15:02:49.778Z [err] gyp ERR! stack
2020-04-27T15:02:49.779Z [err] at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-04-27T15:02:49.779Z [err] gyp ERR! stack
2020-04-27T15:02:49.779Z [err] at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-04-27T15:02:49.779Z [err] gyp ERR! stack
2020-04-27T15:02:49.779Z [err] at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-04-27T15:02:49.779Z [err] gyp ERR! stack
2020-04-27T15:02:49.780Z [err] at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-04-27T15:02:49.780Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-04-27T15:02:49.780Z [err] gyp
2020-04-27T15:02:49.780Z [err] ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-04-27T15:02:49.780Z [err] gyp ERR!
2020-04-27T15:02:49.781Z [err] stack at FSReqCallback.oncomplete (fs.js:158:21)
2020-04-27T15:02:49.782Z [err] gyp
2020-04-27T15:02:49.782Z [err] ERR! System Linux 4.19.114-v7
2020-04-27T15:02:49.783Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-04-27T15:02:49.783Z [err] gyp ERR! cwd
2020-04-27T15:02:49.783Z [err] /config/node-red/node_modules/mdns
2020-04-27T15:02:49.783Z [err] gyp
2020-04-27T15:02:49.784Z [err] ERR!
2020-04-27T15:02:49.784Z [err] node -v v12.15.0
2020-04-27T15:02:49.784Z [err] gyp ERR! node-gyp -v
2020-04-27T15:02:49.784Z [err] v5.0.5
2020-04-27T15:02:49.784Z [err] gyp
2020-04-27T15:02:49.785Z [err] ERR! not ok
2020-04-27T15:02:49.785Z [err]
2020-04-27T15:02:49.864Z [out]
2020-04-27T15:02:49.864Z [out] > [email protected] install /config/node-red/node_modules/energenie-ener314rt
2020-04-27T15:02:49.864Z [out] > node-gyp rebuild
2020-04-27T15:02:49.864Z [out]
2020-04-27T15:02:53.102Z [err] gyp
2020-04-27T15:02:53.104Z [err]
2020-04-27T15:02:53.104Z [err] ERR! build error
2020-04-27T15:02:53.108Z [err] gyp
2020-04-27T15:02:53.109Z [err] ERR! stack
2020-04-27T15:02:53.109Z [err] Error: not found: make
2020-04-27T15:02:53.109Z [err] gyp
2020-04-27T15:02:53.110Z [err] ERR! stack
2020-04-27T15:02:53.110Z [err] at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-04-27T15:02:53.110Z [err] gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-04-27T15:02:53.110Z [err] gyp ERR!
2020-04-27T15:02:53.111Z [err] stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-04-27T15:02:53.111Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-04-27T15:02:53.111Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-04-27T15:02:53.111Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-04-27T15:02:53.112Z [err] gyp ERR! stack at FSReqCallback.oncomplete (fs.js:158:21)
2020-04-27T15:02:53.115Z [err] gyp ERR!
2020-04-27T15:02:53.115Z [err] System Linux 4.19.114-v7
2020-04-27T15:02:53.115Z [err] gyp
2020-04-27T15:02:53.115Z [err] ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-04-27T15:02:53.115Z [err] gyp ERR!
2020-04-27T15:02:53.115Z [err] cwd /config/node-red/node_modules/energenie-ener314rt
2020-04-27T15:02:53.116Z [err] gyp ERR!
2020-04-27T15:02:53.116Z [err] node -v
2020-04-27T15:02:53.116Z [err] v12.15.0
2020-04-27T15:02:53.116Z [err] gyp
2020-04-27T15:02:53.116Z [err] ERR! node-gyp -v
2020-04-27T15:02:53.117Z [err] v5.0.5
2020-04-27T15:02:53.117Z [err] gyp ERR!
2020-04-27T15:02:53.117Z [err] not ok
2020-04-27T15:02:55.907Z [err] npm
2020-04-27T15:02:55.908Z [err] WARN
2020-04-27T15:02:55.908Z [err] optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/mdns):
2020-04-27T15:02:55.908Z [err] npm WARN optional
2020-04-27T15:02:55.908Z [err] SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
2020-04-27T15:02:55.908Z [err] npm
2020-04-27T15:02:55.909Z [err] WARN optional
2020-04-27T15:02:55.909Z [err] SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-04-27T15:02:55.910Z [err]
2020-04-27T15:02:55.954Z [err] npm
2020-04-27T15:02:55.954Z [err] ERR! code ELIFECYCLE
2020-04-27T15:02:55.955Z [err] npm ERR! errno
2020-04-27T15:02:55.955Z [err] 1
2020-04-27T15:02:55.956Z [err] npm
2020-04-27T15:02:55.956Z [err] ERR! [email protected] install: node-gyp rebuild
2020-04-27T15:02:55.956Z [err] npm ERR!
2020-04-27T15:02:55.961Z [err] Exit status 1
2020-04-27T15:02:55.961Z [err] npm ERR!
2020-04-27T15:02:55.961Z [err] npm ERR! Failed at the [email protected] install script.
2020-04-27T15:02:55.961Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-04-27T15:02:56.008Z [err]
2020-04-27T15:02:56.008Z [err] npm ERR! A complete log of this run can be found in:
2020-04-27T15:02:56.008Z [err] npm ERR! /root/.npm/_logs/2020-04-27T15_02_55_975Z-debug.log
2020-04-27T15:02:56.037Z rc=1


2020-04-27T15:06:48.814Z Install : node-red-contrib-energenie-ener314rt 0.3.8

2020-04-27T15:06:49.779Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2020-04-27T15:07:19.465Z [out]
2020-04-27T15:07:19.465Z [out] > [email protected] install /config/node-red/node_modules/mdns
2020-04-27T15:07:19.465Z [out] > node-gyp rebuild
2020-04-27T15:07:19.465Z [out]
2020-04-27T15:07:23.947Z [err] gyp
2020-04-27T15:07:23.949Z [err]
2020-04-27T15:07:23.949Z [err] ERR! build error
2020-04-27T15:07:23.953Z [err] gyp
2020-04-27T15:07:23.953Z [err] ERR!
2020-04-27T15:07:23.953Z [err] stack
2020-04-27T15:07:23.954Z [err] Error: not found: make
2020-04-27T15:07:23.954Z [err] gyp ERR!
2020-04-27T15:07:23.954Z [err] stack
2020-04-27T15:07:23.954Z [err] at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-04-27T15:07:23.954Z [err] gyp
2020-04-27T15:07:23.954Z [err] ERR! stack
2020-04-27T15:07:23.954Z [err] at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-04-27T15:07:23.954Z [err] gyp
2020-04-27T15:07:23.955Z [err] ERR!
2020-04-27T15:07:23.955Z [err] stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-04-27T15:07:23.955Z [err] gyp ERR!
2020-04-27T15:07:23.955Z [err] stack
2020-04-27T15:07:23.955Z [err] at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-04-27T15:07:23.955Z [err] gyp
2020-04-27T15:07:23.956Z [err] ERR! stack
2020-04-27T15:07:23.956Z [err] at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-04-27T15:07:23.956Z [err] gyp
2020-04-27T15:07:23.956Z [err] ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-04-27T15:07:23.956Z [err] gyp
2020-04-27T15:07:23.956Z [err] ERR! stack
2020-04-27T15:07:23.957Z [err] at FSReqCallback.oncomplete (fs.js:158:21)
2020-04-27T15:07:23.958Z [err] gyp
2020-04-27T15:07:23.958Z [err] ERR! System Linux 4.19.114-v7
2020-04-27T15:07:23.959Z [err] gyp ERR!
2020-04-27T15:07:23.959Z [err] command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-04-27T15:07:23.959Z [err] gyp ERR!
2020-04-27T15:07:23.959Z [err] cwd /config/node-red/node_modules/mdns
2020-04-27T15:07:23.960Z [err] gyp ERR!
2020-04-27T15:07:23.960Z [err] node -v
2020-04-27T15:07:23.960Z [err] v12.15.0
2020-04-27T15:07:23.960Z [err] gyp
2020-04-27T15:07:23.963Z [err] ERR! node-gyp -v v5.0.5
2020-04-27T15:07:23.963Z [err] gyp ERR! not ok
2020-04-27T15:07:24.022Z [out]
2020-04-27T15:07:24.022Z [out] > [email protected] install /config/node-red/node_modules/energenie-ener314rt
2020-04-27T15:07:24.022Z [out] > node-gyp rebuild
2020-04-27T15:07:24.022Z [out]
2020-04-27T15:07:27.180Z [err] gyp
2020-04-27T15:07:27.181Z [err]
2020-04-27T15:07:27.182Z [err] ERR! build error
2020-04-27T15:07:27.186Z [err] gyp
2020-04-27T15:07:27.186Z [err] ERR!
2020-04-27T15:07:27.186Z [err] stack Error: not found: make
2020-04-27T15:07:27.186Z [err] gyp ERR!
2020-04-27T15:07:27.192Z [err] stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-04-27T15:07:27.192Z [err] gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-04-27T15:07:27.192Z [err] gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-04-27T15:07:27.192Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-04-27T15:07:27.192Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-04-27T15:07:27.192Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-04-27T15:07:27.192Z [err] gyp ERR! stack at FSReqCallback.oncomplete (fs.js:158:21)
2020-04-27T15:07:27.192Z [err] gyp ERR! System Linux 4.19.114-v7
2020-04-27T15:07:27.192Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-04-27T15:07:27.192Z [err] gyp ERR! cwd /config/node-red/node_modules/energenie-ener314rt
2020-04-27T15:07:27.192Z [err] gyp ERR! node -v
2020-04-27T15:07:27.193Z [err] v12.15.0
2020-04-27T15:07:27.193Z [err] gyp ERR! node-gyp -v v5.0.5
2020-04-27T15:07:27.193Z [err] gyp
2020-04-27T15:07:27.203Z [err] ERR! not ok
2020-04-27T15:07:30.027Z [err] npm
2020-04-27T15:07:30.029Z [err]
2020-04-27T15:07:30.029Z [err] WARN
2020-04-27T15:07:30.030Z [err]
2020-04-27T15:07:30.030Z [err] optional
2020-04-27T15:07:30.031Z [err] SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/mdns):
2020-04-27T15:07:30.032Z [err] npm
2020-04-27T15:07:30.032Z [err]
2020-04-27T15:07:30.033Z [err] WARN
2020-04-27T15:07:30.033Z [err]
2020-04-27T15:07:30.034Z [err] optional
2020-04-27T15:07:30.035Z [err] SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
2020-04-27T15:07:30.036Z [err] npm
2020-04-27T15:07:30.037Z [err]
2020-04-27T15:07:30.038Z [err] WARN
2020-04-27T15:07:30.039Z [err]
2020-04-27T15:07:30.040Z [err] optional
2020-04-27T15:07:30.041Z [err] SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-04-27T15:07:30.044Z [err]
2020-04-27T15:07:30.087Z [err] npm
2020-04-27T15:07:30.089Z [err]
2020-04-27T15:07:30.090Z [err] ERR!
2020-04-27T15:07:30.091Z [err]
2020-04-27T15:07:30.093Z [err] code
2020-04-27T15:07:30.094Z [err] ELIFECYCLE
2020-04-27T15:07:30.096Z [err] npm
2020-04-27T15:07:30.097Z [err]
2020-04-27T15:07:30.098Z [err] ERR!
2020-04-27T15:07:30.108Z [err] errno 1
2020-04-27T15:07:30.108Z [err] npm ERR! [email protected] install: node-gyp rebuild
2020-04-27T15:07:30.108Z [err] npm ERR! Exit status 1
2020-04-27T15:07:30.108Z [err] npm ERR!
2020-04-27T15:07:30.108Z [err] npm ERR! Failed at the [email protected] install script.
2020-04-27T15:07:30.108Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-04-27T15:07:30.154Z [err]
2020-04-27T15:07:30.154Z [err] npm ERR! A complete log of this run can be found in:
2020-04-27T15:07:30.154Z [err] npm ERR! /root/.npm/_logs/2020-04-27T15_07_30_121Z-debug.log
2020-04-27T15:07:30.177Z rc=1

Make switch status messages consistant

The node status messages vary between the switch types, and are too difficult to use programmatically. Simplify these messages as follows:

ook-switch: Not configured, Sending, on, off
openThings-monitor: Not configured, on, off
openThings-switch: Not configured, on, off, Sending on, Sending off

Unable to initialise Energenie ENER314-RT board error: -1

hi, i have tried two different boards on pi zero and pi b, neither initialise the board, i have enabled spi with raspi-config.
debug reports: "Unable to initialise Energenie ENER314-RT board error: -1"
and "TypeError: Cannot read property 'push' of undefined"
the red and green do light when node is added to palette.
when teaching socket i get error something went wrong teaching the device.

thanks

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.