This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

P1 UDP server

Hi,

I'm switching from domoticz to homey. On my meter, i have a P1 LAN UDP server running. Domoticz is grabbing this data with the P1 LAN interface. Does homey has a plugin for this as well? I caught the output of the device below:
/XMX5LGBBFFB231124330

1-3:0.2.8(42)
0-0:1.0.0(171116145912W)
0-0:96.1.1(4530303034303031353730353833333134)
1-0:1.8.1(005636.829*kWh)
1-0:2.8.1(000000.000*kWh)
1-0:1.8.2(005763.960*kWh)
1-0:2.8.2(000000.000*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.515*kW)
1-0:2.7.0(00.000*kW)
0-0:96.7.21(00003)
0-0:96.7.9(00003)
1-0:99.97.0(3)(0-0:96.7.19)(170515065846S)(0000000359*s)(170325055148W)(0028671320*s)(160427103644S)(0038533800*s)
1-0:32.32.0(00000)
1-0:32.36.0(00000)
0-0:96.13.1()
0-0:96.13.0()
1-0:31.7.0(002*A)
1-0:21.7.0(00.515*kW)
1-0:22.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303032333430313439333831393134)
0-1:24.2.1(171116140000W)(02149.259*m3)
!4A9E.

Comments

  • Not sure if I can be of help, but I have a P1 cable attached to my Syno NAS, which has Domoticz running. This flow grabs the energy usage:



    The first field = the IP of my Syno running Domoticz: http://internal_IP:8084/json.htm?type=devices&rid=59
    Second field = $.[result][0][CounterToday]
    Third field = Stroomverbruik_vandaag (the variable I made).

    I have similar flows for reading Gas and all totals.
  • Hi,thanks for your reply. I think I can do the same over here. I will adjust the output from the udp server in tcp json, and then I will be ok! Thanks !

    i don’t want to use domoticz anymore, so I’m trying to move everything to homey
  • That scenario is the only reason I'm running domoticz at the moment. It works great on a raspberry pi zero. I tried to post data from domoticz to homey but until now no working scenario yet. :(
  • In the code there's probably something like (this is arduino-code):
    void SendToDomoLog(char* message)
    {
      char url[512];
      sprintf(url, "http://%s:%d/json.htm?type=command¶m=addlogmessage&message=%s", domoticzIP, domoticzPort, message); 
    }

    Where logmessages are posted to a domiticz-server. With the Homey-http-app you could update variables or you could extend an existing app to receive these values? Don't have the device myself so can't help you further myself...
    also see http://gejanssen.com/howto/Slimme-meter-uitlezen/
  • Well, I changed my setup. I flashed a wemos d1 (esp8266 module) and created a simple board for my connection to the smart meter. The wemos reads the serial data and publishes the data via MQTT. Tomorrow my homey will arrive, and with the MQTT broker, this should somehow work.

    For anyone who is interested in building a smart meter module that sends data over to homey I saved my project on GitHub >> https://github.com/Johnwulp/esp8266_P1_MQTT
  • Eternity said:
    Not sure if I can be of help, but I have a P1 cable attached to my Syno NAS, which has Domoticz running. This flow grabs the energy usage:



    The first field = the IP of my Syno running Domoticz: http://internal_IP:8084/json.htm?type=devices&rid=59
    Second field = $.[result][0][CounterToday]
    Third field = Stroomverbruik_vandaag (the variable I made).

    I have similar flows for reading Gas and all totals.
    Maybe a stupid question, but in domoticz I could update a virtual meter. With the the domoticz api you could set the meter to the right value.
    I am trying to do this the same way in homey, but that doesn't seem to be possible. I see you created a variable, can you explain how that you display your power usage for example? I can only see string or integer, but do you also have a slider with an integer? And can you see you power consumption from last week?
  • EternityEternity Member
    edited November 2017
    @johnwulp

    The value is displayed in ImperiHome on my phone and tablet. So, not via Homey (yet). The data is logged in variables and that way totals can be logged. I don't make use of that, I just wanted a visual representation on my tablets, and ImperiHome does that. I hope a future Homey/ImperiHome integration will follow. Hopefully Homey Dash will allow visualization of variables too! 

    PS
    Domoticz is still used to log all data too. So, I do have insight in my usage history. Furthermore, my utilities provider (Greenchoice) also logs my data/history....unfortunately they do it for billing me ;-)
Sign In or Register to comment.