Page 1 of 1
sdm230 WIFI
Posted: Sunday 26 December 2021 19:01
by dagger38
Hi
Is there a way to get data from the sdm230 WIFI
It is installed to work with the P1 homewizard meter , so if i get the data from the P1 into domoticz , it is the data from ALL of the power used by my system , not from the sdm230 apart!
So is there a way to get the sdm230 wifi as a hardware device so i can use the data to display it's power usage ?
Thanks for the help
Re: sdm230 WIFI
Posted: Sunday 27 February 2022 10:38
by dagger38
Bumping this question!!
Re: sdm230 WIFI
Posted: Sunday 27 February 2022 11:02
by Xenomes
Re: sdm230 WIFI
Posted: Sunday 27 February 2022 11:22
by dagger38
Sadly...that link it is the modbus version of the same device.
Mijn works via wifi
Thanks anyway
Re: sdm230 WIFI
Posted: Sunday 27 February 2022 13:23
by Xenomes
To bad, is the connection a serial over wifi?
Re: sdm230 WIFI
Posted: Sunday 27 February 2022 14:54
by dagger38
It connects to the P1 device and app
P1 is implemented in domotica and works, but not the meter
Re: sdm230 WIFI
Posted: Sunday 19 June 2022 13:45
by willemd
You can do this with the same HTTP/HTTPS poller method as used for the Homewizard P1 meter, explained elsewhere in this forum. I did it this morning and it works !!!
Steps:
1) Enable the local API for the sdm230 Wifi in your homewizard energy app.
2) Determine the IP address of the sdm230 in your WIFI network (you can see the data from the sdm230 on http://[ip-address]/api/v1/data )
3) Add the kWh meter via the setup menu in the domoticz hardware list (similar to the example of the P1 Wifi meter).
4) Create a virtual sensor of type Electric (instant+counter). This will then show up in your devices.
5) Add a new lua script called kWh.lua (or whatever name you used in the setup of the hardware at point 3 above) on your Raspberry Pi with the following contents:
------ BEGIN ------
-- Read API values
s = request['content'];
--
-- kWhmeter solar panels
--
-- return value
local a = domoticz_applyJsonPath(s,'.total_power_export_t1_kwh')
-- active current return
local b = domoticz_applyJsonPath(s,'.active_power_w')
local c = domoticz_applyJsonPath(s,'active_power_l1_w')
--
local idkWh = 3
domoticz_updateDevice(idkWh,'',b ..";".. a*1000 )
------ END ------