P1 MySensors

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
PixelMagic
Posts: 7
Joined: Wednesday 28 October 2015 21:17
Target OS: Linux
Domoticz version: 3.8796
Location: Netherlands
Contact:

P1 MySensors

Post by PixelMagic »

Hi,

Have been working on getting my P1 meter to report thru MySensors. Have to wait on an extra Arduino but wanted to figure out a bit on how to get the data in Domoticz the best way.

On the MySensors side the P1 is not supported yet and does not have its own device code (yet?). To keep things in line Domoticz i want to create the messages in the format that Domoticz already uses for P1 serial or lan. I have looked into P1MeterBase.cpp and below the line 50 there are some vars it uses (i think, not really into C).

Could someone help me out a bit and maybe we can create a third way of connecting the P1 smart meter to Domoticz.

Erwin
PixelMagic
Posts: 7
Joined: Wednesday 28 October 2015 21:17
Target OS: Linux
Domoticz version: 3.8796
Location: Netherlands
Contact:

Re: P1 MySensors

Post by PixelMagic »

Nobody got any idea ?
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: P1 MySensors

Post by gizmocuz »

yes, just buy the cable !
Quality outlives Quantity!
PixelMagic
Posts: 7
Joined: Wednesday 28 October 2015 21:17
Target OS: Linux
Domoticz version: 3.8796
Location: Netherlands
Contact:

Re: P1 MySensors

Post by PixelMagic »

Yeah, but the meter and Domoticz virtual server are not in the same place, thats why i want to do it the MySensors way.

Second reason is that i run Domoticz on VmWare and prefer to to use usb if not really needed.

Any help would be nice.
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: P1 MySensors

Post by sincze »

Would some posts like this help a bit?

https://forum.mysensors.org/topic/907/s ... ter-node/5

I know it can work ;-) as people actually showed me the device in real life. :D
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Rolo
Posts: 52
Joined: Sunday 27 December 2015 19:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: The Netherlands
Contact:

Re: P1 MySensors

Post by Rolo »

Maybe you can use a Raspberry PI close to your energymeters, connect the P1 to the USB of the PI. Then use Ser2net on the PI to make the serial -> ehternet conversion. This way you can access the P1 data on your domoticz via ehternet.
The PI model B can do this job easy, they are arround for little money now the newer models are more in demand.
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: P1 MySensors

Post by sincze »

Rolo wrote:Maybe you can use a Raspberry PI close to your energymeters, connect the P1 to the USB of the PI. Then use Ser2net on the PI to make the serial -> ehternet conversion. This way you can access the P1 data on your domoticz via ehternet.
The PI model B can do this job easy, they are arround for little money now the newer models are more in demand.
Yes, this indeeds work like a charm.
or:
If you can get them flash a TPLINK 703 with openWRT and use the same ser2net trick (as seen with OTGW).
That TP LINK will not crash.. An SD card of the Raspberry can :D

But in this case I think he wanted to deal with the p1 meter via mysensors :D , interesting as well.

I would for example combine the Mysensor node with a
- door sensor to switch on the light in the meterkast,
- obtain temp + humid in the meterkast
- and send the meter values to domoticz.

And that all from 1 node only. :D :D
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest