Dear Home Assistant community.
I ordered and received a SlimmeLezer+ from zuidwijk which works perfectly fine out of the box. Unfortunately, the wi-fi signal often breaks and it messes up the real-time curves of electricity consumption (which I’ll need in winter time to precisely monitor consumption when the heating will be switched on and the heat pumps working).
So, I’m back with the SlimmeLezer P1 and smartmeter2mqtt
Home - Smartmeter2mqtt.
I made it work using an intermediate computer to run smartmeter2mqtt
and then publish to the mqtt of home assistant installed on raspberry pi.
Now my idea is: instead of having smarmeter2mqtt
on an intermediate computer, why not having it on the raspberry pi where home assistant is installed and having it running through NodeRed ?
So I installed NodeRed and configured it with these NPM packages:
-
[email protected]
+serialport
And system packages: -
python3
,make
,g++
andlinux-headers
See:
Now, I’m trying to start smartmeter2mqtt
through the NodeRed interface using the exec
component, unfortunately, it’s like the parameters are never taken into consideration and consequently can’t have it running.
I always get the feedback: Port or socket required
instead of getting 1.7.0-beta.9
for instance.
See:
While smartmeter2mqtt --version
in a console returns:
Would you have an idea if theoretically it could work this way, and if so, how to pass input parameters to smartmeter2mqtt
through NodeRed ?
Thank you and best regards.
Alexandre
PS:
- Search on HA community, nothing similar found: Search results for 'nodered exec parameters' - Home Assistant Community
- Used this resource for executing command with parameters on NodeRed Using the Exec Node to Run External Commands