To get some idea of what is and is not possible at this moment for Ezlo plug in development I took the Solar Meter plugin for Vera and made an Ezlo version of it. This plugin will create just a power meter device displaying the produced Watts and daily KWh, but it is a start.
For now the Ezlo FW does not allow creation of user interface elements required for the Harmony plugin. No idea when it will be up to that level of flexibility.
Hi Rene, I’m trying to install the plugin. I have copied the files into the folder /opt/firmware/data/custom_plugins/SolarMeter. The first subfolder in this path is /opt/firmware/data/custom_plugins/SolarMeter/ezlo-SolarMeter-master.
If I run the command /opt/firmware/bin/ha-infocmd hub.extensions.custom_plugin.register SolarMeter nothing happens. I run this command from within WinSCP using the command line. I updated the SolarMeter.json file to only include the solar edge device.
I have set the log level to 5, below is what I get from various log files. I expected to see a device being created in the device overview but that still doesn’t happen
ha-extensions_manager.log
2021-01-13 07:31:30.494278 INFO : Got request to register custom plugins
2021-01-13 07:31:30.494886 INFO : Unregistering plugin: SolarMeter
2021-01-13 07:31:30.509216 INFO : Tearing down plugin: SolarMeter-1.0
2021-01-13 07:31:30.531168 INFO : Try to register plugin: SolarMeter
2021-01-13 07:31:30.532587 INFO : Registering plugin: SolarMeter-1.0
2021-01-13 07:31:30.532804 INFO : Plugin started: SolarMeter-1.0
2021-01-13 07:31:30.533270 INFO : Set scene block template: HUB:SolarMeter/scene_blocks.json
2021-01-13 07:31:30.561236 INFO : init: GatewayPlugin: the gateway (SolarMeter) got registered for the plugin (SolarMeter-1.0)
2021-01-13 07:31:30.576743 INFO : Plugin: request to start the plugin (SolarMeter-1.0, HUB:SolarMeter/scripts/startup)
ha-luad.log
2021-01-13 07:31:30.529140 INFO : LuaAddon: a script: HUB:SolarMeter/scripts/teardown has been executed successfully
2021-01-13 07:31:30.591578 ERROR: plugin has no permissions to use the required module lpeg
2021-01-13.07:31:30 debug SolarMeter/scripts/startup: set_configuration.config={ version=“1.0”, remove_inactive=false, log_level=5, label=“Universal Solar Meter”, author=“Rene Boer” }
2021-01-13.07:31:30 debug SolarMeter/scripts/startup: create_devices.devices={ 1={ poll_interval=900, active=false, id=1, name=“Solar Edge”, config={ system_id=“999999”, api_key=“XXXXXXXXXXXX…XXXXX” }, path=“solar_egde” } }
2021-01-13.07:31:30 debug SolarMeter/scripts/startup: Hub has 7 devices
2021-01-13 07:31:30.614642 INFO : LuaAddon: a script: HUB:SolarMeter/scripts/startup has been executed successfully
Nothing in the log for SolarMeter after the last INFO line you show? Can you send me a PM with the SolarMeter.json you use? You have seven (7) inverters configured, is that your intend?
Actually the entries are gone from the log file?? If I now check the ha-luad.log file I miss entries from 13-01-2021. As you can see from the copied lines above the entries existed but now I cannot see them anymore in the ha-luad.log. Strange… maybe this is caused by submitting a hub.Reboot command via the API tool which I was checking this morning.
I know there where no more entries, I used the search to find all “solar” lines
It is not my intention to have 7 inverters. My SolarMeter.json only contains one device.
The Ezlo log files rotate so after a while things disappear. Also after a reboot the logs are recreated. There will be a previous version with a .1 post-fix.
Best Home Automation shopping experience. Shop at Ezlo!