Topic-icon Phc2Mqtt

Mehr
16 Mai 2021 22:29 #46 von Ricotchet
Ricotchet antwortete auf Phc2Mqtt
Hi Jo thx for your answer i get the symantics already.

the xPhcLogd format it works better then json but the described issue above is already in xPhcLogd format.

if you can make the format more openhab compatible this will be great
im still new in openhab 3 so at the moment i have no idea what is best.

But first thing are running ;) thx for that

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
16 Mai 2021 22:35 #47 von rick
rick antwortete auf Phc2Mqtt
I got a quick and dirty solution in OpenHAB now for a simple OMD module.
I made thing with a channel with type Switch and this settings:

State Topic: phc2mqtt/sta/omd.8
Command Topic: phc2mqtt/cmd/ccmd
Custom On/Open Value: 1
Incoming value transformations: REGEX:out2:(.*?)
Outgoing value transformation: MAP:phc2mqtt.map
Outgoing value format: omd.8.out2.%s

For the map transform I have a phc2mqtt.map file in my /etc/openhab/transform folder which contains:
0:OFF
1:ON

This was with the logging still in text format. I think the JSON format or the xPhcLogd format might be easier. Will try that later

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
04 Jun 2021 15:30 #48 von Ricotchet
Ricotchet antwortete auf Phc2Mqtt
Hi Jo,
in the last days I had some issues with  the phc2mqtt module.
The phc bus is completely overload means the phc RX led is almost all the time on and the Phc2mqtt module all leds are on and it’s not reachable via WiFi See picture 
any idea how to debug? 
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
04 Jun 2021 16:52 #49 von simonjo
simonjo antwortete auf Phc2Mqtt
Hi Paul,

Can you remove the red top cover as this hides the blue led.

How are you powering the module? is it with a USB power or from the PHC module bus?


mvg, Jo
 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
08 Jun 2021 22:14 #50 von Ricotchet
Ricotchet antwortete auf Phc2Mqtt
Hi jo the blue led is also on.
I power the module directly by the bus.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Jun 2021 23:26 #51 von simonjo
simonjo antwortete auf Phc2Mqtt
Paul,

Can you try and run the module on a USB power adapter, plugged in to the ESP DEVKITc.

But first remove the cap from the PWR connector on the module as explained in the manual.

regards, Jo
 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
18 Jul 2021 18:34 #52 von simonjo
simonjo antwortete auf Phc2Mqtt
All quiet means everything is going well.

In the meantime I am running tests with Phc2Mqtt in 'Passive STMv3' mode (instead of 'Proxy' mode), this replaces the real STM in your installation, but it does NOT perform the actions programmed into the STM.

So what is the difference between 'Proxy' and 'Passive STMv3' mode?
- in 'Proxy' mode commands published to Phc2Mqtt are sent to the real STM (v1/2/3) in your system via the external protocol (binary or XMLRPC)
- in 'Proxy' mode, Phc2Mqtt listens on the RS485 module bus and analyzes 2 subsequent packets to determine what is happening, and based on that reports events/status over MQTT

- in 'Passive STMv3' mode, commands published to Phc2Mqtt are sent directly onto the RS485 module bus
- in 'Passive STMv3' mode, Phc2Mqtt is the master of the RS485 bus and knows exactly what is happening, it will report events/status over MQTT

Note that 'Passive STMv3' mode does not handle module events itself, this is left to an application server like OpenHab, ioBroker and others. Whereas a real STM will lookup the event and then execute the commands linked to the event.

 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Jul 2021 20:49 #53 von Ricotchet
Ricotchet antwortete auf Phc2Mqtt
Hi Simon here my feedback.
I have connected the MQtt module now by a usb cable and it works more stable but sometime I have still the issue of nothing is working. What I need then to do is to plug off the usb power.
How to log what’s the issue?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Jul 2021 10:50 #54 von simonjo
simonjo antwortete auf Phc2Mqtt
Logging on ESP32 is problematic because of small memory and wifi connection, but there are 2 ways to get more info:

1) Connect the module via USB to your PC and run a terminal application, then enable console logging to 'debug' or 'trace'. This way much more logging can be seen on the PC, also when there are Wifi problems or the module is rebooting, you will be able to see the complete log of what happened. This is the best way to find the problems as the connection is always there (not depending on Wifi)

2) Setup syslog logging, this way logging is sent to the syslog host (which can be an application running on your PC). The only problem with this solution is the that Wifi must be connected.


In the meantime I have been discussing with other users and identified 2 problems that I am fixing:
- losing Wifi connection makes the module end up in AP-mode -> will be changed into constant retrying to connect to AP
- the UART is configured after Wifi conn is established, this may cause 'hanging' of the bus -> needs to be done much earlier, right after module startup

I will provide an update later this week.

mvg, Jo
 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
23 Jul 2021 16:31 #55 von HenningW
HenningW antwortete auf Phc2Mqtt
Hi Jo,

the new passive mode sounds really cool. Together with OpenHAB it should be exactly the replacement of the original STM that I was looking for.

Do you still have ready-made modules to sell? If so, how could I buy one?

Is there some documentation? I saw you mentioned it in the thread but did not see a link.

BR,
Henning

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
25 Jul 2021 10:22 #56 von simonjo
simonjo antwortete auf Phc2Mqtt
Hi Henning,

I checked and still have components for 1 extra module, I will send you PM with details.

About documentation: see document attached here.


mvg, Jo
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
07 Sep 2021 16:52 #57 von Ricotchet
Ricotchet antwortete auf Phc2Mqtt
Hi jo is the new firmware already available?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
07 Sep 2021 20:27 #58 von simonjo
simonjo antwortete auf Phc2Mqtt
Hi Paul,

I am finalising field testing with the new version that supports both Proxy mode and PassiveSTMv3 mode.

The plan is to make this version available by the end of the week.

I attach the manual of the new version so you can read about it.

ps: can you use email to contact me as I am not notified of messages here in the forum, I saw this by accident

mvg,Jo
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
25 Okt 2022 12:51 #59 von GunterO
GunterO antwortete auf Phc2Mqtt
Hello,
I'm a bit late to the party, but do you have still one or two modules to sell?
I'm living in Belgium near Antwerp.
Thanks!

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
27 Okt 2022 22:18 #60 von simonjo
simonjo antwortete auf Phc2Mqtt
Hi Gunter, I will send you a private message...

Jo

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Powered by Kunena Forum