Phc2Mqtt
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
It's been a while but here we are with some news on Phc2Mqtt, maybe I should make a new topic for it.
At this moment I have a running prototype as shown in the pictures, you can just connect it in the module bus of your PHC installation.
It is mainly targetted at installations using an STMv3, but it also works with STMv1/v2
It does following:
- connects to your WLAN
- connects to an MQTT broker
- monitors the RS485 bus and sends events and status as an MQTT msg to the broker (like xphclogd)
- you can send module commands to it as an MQTT msg, and it will send it to your STMv1/v2/v3 (like xWRC)
- there is also a webconsole so you can see what is happening via a webpage
People using xphclogd will remember that we need to know which modules are used in your PHC system (the module list) so we can correctly decode packets from the module bus (RS485). We also need this info to encode commands in the correct format for the target module.
In my approach I use the PEHA System SW v 3.x.y (in which you define your project) to get the needed info, you just need to enter the IP address of the Phc2Mqtt module iso the STMv3 IP address, and then transfer the project. Phc2Mqtt will act as an STMv3 and extract the needed info.
For systems with an STMv1/v2 the workaround is to make a new project with the System SW v3.x.y that has the same modules as in your System SW v2.x.y. Also you need to make the STMv1/v2 reachable over IP with an IP-to-RS232 convertor, just like you would do for xWRC
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
If anybody is interrested please let me know. The price will be arround 50 euro including shipping cost to Germany.
cu, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- TobiG
- Offline
- Junior Boarder
- Beiträge: 5
- Dank erhalten: 0
the shutters in our house are controlled by two PHC 950 JRM and I would like to make them smart. We don't have an STM, but I've seen the openHAB binding is able to send commands to the bus. While researching for hardware to send commands to the bus I'v seen your ESPxPHC module and would like to know if I could send commands like: Shutter 1 up/down?
I'm a software engineer so I could run tests or help with the development for this.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Do you mean PHC Compact like the item in below link?
www.heiz24.de/PEHA-D-952-JRM-00299517-Sh...-RyHM6AaAjO5EALw_wcB
Regular JRM module is of type 940
.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- TobiG
- Offline
- Junior Boarder
- Beiträge: 5
- Dank erhalten: 0
Currently the Inputs are connected to wall switches by wires. My other plan was to use a relay board with 16 digital outputs and connect an esp32 to it (via optocouplers). But a direct connector/gateway to the bus would be a better solution
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Is there another connection possible on this device? I can't see it. How do you configure it, via an external PC?
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- haribo
- Offline
- Senior Boarder
- Beiträge: 68
- Dank erhalten: 12
your new project sounds really interesting and the price is okay.
Please reserve one unit for me.
Regards Harald
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- TobiG
- Offline
- Junior Boarder
- Beiträge: 5
- Dank erhalten: 0
Basically it is a controller with 24 Inputs I0 - I23 and 24 Outputs O0 - O23 for 12 shutter motors. Every Input controlls one output, e.g. I0 controlls O0 and every motor has two inputs: M0 has I0 (down) and I1 (up).
Here is a wiring diagram on section 13: manualzz.com/doc/4660606/und-bedienung-j...nmodul-950-jrm---etk
The JRM has a Bus In and Bus Out connector and I found a presentation were the JRM is controlled with a Funk-Interface 940 FU-C. downloads.elektroplanet.ch/files/952_jrm_compact_pra.pdf on page 8. So I expect there exist some message/command on the bus to tell the JRM that an output should be switched or an input is emulated.
The JRM has another feature: If you the input is triggered for a short time than the shutter move just a litte bit. If the input is triggered for over 1 second than the output is on for 2 minutes (Dauerlauf).
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
One way to control the shutters is to connect something that behaves like an input module (slave module), but that is not the scope of Phc2Mqtt. My next step is to replace an STMv3.
Maybe if you open the module, you can check if there is a serial connection to communicate with the controller (as a normal STM would allow)
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- TobiG
- Offline
- Junior Boarder
- Beiträge: 5
- Dank erhalten: 0
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- mimo
- Offline
- Junior Boarder
- Beiträge: 12
- Dank erhalten: 2
please reserve one for me as well.
I'm looking forward to it
Thank you
Michael
STM-V2, EMD,AMD, JRM, DIM, OpenHC, raspberry, xwrc, NetIO, Gira
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- tomroth
- Offline
- Fresh Boarder
- Beiträge: 1
- Dank erhalten: 0
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Aktuelle Seite:
- Startseite
- Forum
- PHC-Forum
- PHC2Mqtt
- Phc2Mqtt