Phc2Mqtt
- ansgar75
- Offline
- Expert Boarder
- Stay hungry, stay foolish! - Steve Jobs
- Beiträge: 111
- Dank erhalten: 14
if you have one Modul left I will take it.
Thank you in advance
Ansgar
Peha PHC V3 seit 2017 (vorher V2 seit 2009) im Neubau - MCC - JRM - EMD - AMD - DIM - UIM - FUI - Module
IP-Symcon Smarthome Software auf Intel NUC mit Ubuntu 20.04LTS (Einbindung von PHC tlw. über Webinterface der V3)
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
I had you on the list already, so be sure to get one
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- ansgar75
- Offline
- Expert Boarder
- Stay hungry, stay foolish! - Steve Jobs
- Beiträge: 111
- Dank erhalten: 14
Peha PHC V3 seit 2017 (vorher V2 seit 2009) im Neubau - MCC - JRM - EMD - AMD - DIM - UIM - FUI - Module
IP-Symcon Smarthome Software auf Intel NUC mit Ubuntu 20.04LTS (Einbindung von PHC tlw. über Webinterface der V3)
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- TobiG
- Offline
- Junior Boarder
- Beiträge: 5
- Dank erhalten: 0
I had some free time to check my JRM. There are currently 45 cables connected to it and I'm afraid to work with the 230 V outputs. So it would be a lot of work to get the JRM out to open it up. My plan changed to use an ethernet relais boards with 16 relais.
Thank you for your time and the support Jo!
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
For now I have below list of persons that reserved a module, I will send them individual PM's to make arrangements:
- haribo
- mimo
- tomroth
- ansgar75
For last minute candidates: I have 2 modules on spare in the planning.
cu, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- kiemat
- Offline
- Fresh Boarder
- Beiträge: 1
- Dank erhalten: 0
I am also interessted in one!
Thanks!
Matthias
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
I reserved a module for you. I will send you a PM with the details.
Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- HenningW
- Offline
- Fresh Boarder
- Beiträge: 4
- Dank erhalten: 0
a cool project! I was wondering whether one could also run such module without a real STM, i.e., to replace the original PEHA STM by a pure a Phc2Mqtt module. The Phc2Mqtt would then report via MQTT that a button was pressed and a system such as OpenHAB could pick up this message and respond with an MQTT command to enable a channel on am AM module. The Phc2Mqtt would then translate this into a corresponding PHC command that triggers the AM module.
I understand that this would imply that the lights don't work anymore when the OpenHAB system goes down. But there seem to be also occurrences where a PEHA STM dies. And then the entire light system is down as well. And since PEHA phased out the PHC system, such blackout could last even longer
If replacing the PHEA STM by a software-STM would work, I would keep the PEHA STM in place but disconnect it. Then I could still take it into use quickly when/if the software systems happens to fail.
Do you think one could realize that with your module?
Is the software of your module open source?
Thanks a lot,
Henning
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Thx for the compliment
Back in 2008 I wrote inControl, this was a Windows application that replaced an STMv1/v2, it worked with a limited number of PHC modules, but there were too much delays in the RS485 bus handling due to the Windows operating system in between. A second try on Raspi led to the same conclusion. The timing on the PHC module bus is very strict.
After much delay I finally took the time to work on the ESP32/FreeRTOS combination and ported my cross-platform development framework to FreeRTOS, this way it is simpeler to develop/debug new components on my Windows platform, while that code will also run on ESP32.
Upto now I focused on providing an alternative for xPhcLogd + xWRC that many people use in combination with OpenHab, and this is working fine because I developed an interrupt driven serial port driver. Everything that happens on the PHC module bus is handled with microsecond precision.
The first modules are shipped to some users/testers and we expect to start testing next week.
The next step is to port some more code from inControl, code that executes the inner working of an STM. It is my plan to have Phc2Mqtt replace the entire STM, although I cannot give 100% guarantee that everything you specify in the PEHA System Software will also work as it does on a real HW STM. This restriction is more related to presence simulation, the other things like input->output coupling, rolladen, timers, ... will be ok.
Another alternative could be to let Phc2Mqtt replace a real STM but just act as a gateway, so passing events/status from the PHC module bus to MQTT, and accepting commands from MQTT and sending them to the PHC module bus.
About open source: no, I have a NDA (non disclosure aggreement) for some parts of the code
Regards, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- HenningW
- Offline
- Fresh Boarder
- Beiträge: 4
- Dank erhalten: 0
I had actually the latter in mind, i.e., "let Phc2Mqtt replace a real STM but just act as a gateway, so passing events/status from the PHC module bus to MQTT, and accepting commands from MQTT and sending them to the PHC module bus".
One could probably keep it simple by using only the simple commands (AM channel ON/OFF; EM channel OPEN/CLOSED) and let the external controller take care of timers or long/short pressed inputs. Maybe that would also simplify the RS485 handling since all (most?) actions would be triggered by the Phc2Mqtt. The modules would only reply to commands and pings but never initiate any actions/reports themselves. That should also reduce the risk of collisions on the bus.
I think this is basically what UDP2PHC does but it would be nice to use MQTT instead. Seems to be better supported by home automation systems.
I understand that you are working on another track. Hopefully I find the time to look a bit more into it myself.
Thanks again!
BR,
Henning
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Ricotchet
- Offline
- Senior Boarder
- Beiträge: 69
- Dank erhalten: 1
is there one module for me too?
BR Paul
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
I will send you a PM with the details.
Regards, Jo
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.
- simonjo
- Autor
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
I will have a look at using Phc2Mqtt as a pass-through to replace a real STM. This behaviour will not differ that much from acting as a STM, it will even be simpler as I don't need to perform the programmed tasks.
But now first finish my power measuring project.
cu, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- rick
- Offline
- Fresh Boarder
- Beiträge: 4
- Dank erhalten: 0
Do you still have a module available?
I am interested in one. I live in the Netherlands.
Regards,
Rick
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Aktuelle Seite:
- Startseite
- Forum
- PHC-Forum
- PHC2Mqtt
- Phc2Mqtt