Phc2Mqtt

Mehr
07 Nov. 2023 19:57 #91 von simonjo
simonjo antwortete auf Phc2Mqtt
Hi,

I am planning a production run next week, at this moment waiting for new PCB's and DIN cases to arrive.

You can send me mail to simonjo@telenet.be with your details, then I will add you to the reservation list.

There is no version with ethernet, so for now only Wifi

regards, Jo
Folgende Benutzer bedankten sich: nicconst

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Nov. 2024 17:01 #92 von DerChef1987
DerChef1987 antwortete auf Phc2Mqtt
Hallo zusammen, wie kann ich MQTT Befehle im Proxy Modus an die Module schicken um z.B. eine Lampe zu schalten?

Hat da jemand eine Anleitung für mich bzgl. Topic etc.?

Gruß 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Nov. 2024 23:35 - 11 Nov. 2024 14:56 #93 von oberp
oberp antwortete auf Phc2Mqtt
Moin,
zum Beispiel so:

mosquitto_pub -t home/openhab/phc/p2m/cmd/ccmd -m "omd.16.out7.on"
oder
mosquitto_pub -t home/openhab/phc/p2m/cmd/ccmd -m "dim.16.out1.set.255.1"

Weitere Infos zum Payload findest du auf der Phc2Mqtt-Webseite unter dem Menüpunkt "PHC Cmd Reference". Topic hängt natürlich ab von der Koniguration.
Gruß Torsten

edith: channel war ein bisschen viel
Letzte Änderung: 11 Nov. 2024 14:56 von oberp.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
12 Nov. 2024 16:36 #94 von DerChef1987
DerChef1987 antwortete auf Phc2Mqtt
Hallo nochmal,

ich hätte da doch noch einige Fragen zu folgendem:

Was bedeuten die folgenden Infos:

evt et0.<0-31>.in<0-10,12-13>.status
evt et0.<0-31>.in<0-10,12-13>.ingt0
evt et0.<0-31>.in<0-10,12-13>.outlt1
evt et0.<0-31>.in<0-10,12-13>.ingt1
evt et0.<0-31>.in<0-10,12-13>.outgt1
evt et0.<0-31>.in<0-10,12-13>.ingt2
evt et0.<0-31>.in<0-10,12-13>.out

Außerdem, was bedeutet das prio Level und der Prio Lock bei den jrm Modulen?

Gruß Thomas

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
12 Nov. 2024 20:16 #95 von oberp
oberp antwortete auf Phc2Mqtt
Hallo Thomas

Über das Gerät oder die Gerätegruppe "et0" kann ich dir nichts erzählen, da ich bei mir Zuhause nur DIM, IMD und OMD habe.

Beim "InputModule (IMD)" bedeutet
  • ingt0: Taster gedrückt
  • outlt1: Taster früher 1 Sekunde losgelassen
  • ingt1: Taster länger 1 Sekunde gehalten
  • outlt2: Taster früher 2 Sekunden losgelassen
  • ingt2: Taster länger 2 Sekunden gehalten

"Status" gibt dir Infos, z.Bsp. welche Kanäle bei den Modulen gedrückt, ein- oder ausgeschaltet sind.
Gruß Torsten

PS.: Viele Infos hier: sim0njo.github.io/docs/Phc2Mqtt/

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
17 Dez. 2024 11:30 #96 von maartenv
maartenv antwortete auf Phc2Mqtt
Do you still produce those PHC2Mqtt modules?I would like to have one too. 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Mai 2025 17:53 #97 von simonjo
simonjo antwortete auf Phc2Mqtt
Hello all,

In the meantime an ethernet/wifi version (3.1) of Phc2Mqtt is available, starting with v5.0.1.4 firmware ( sim0njo.github.io/docs/Phc2MqttV5/ )

For now I am working on the integration of PHC in Home Assistant via MQTT Discovery feature. Things go just fine for inputs, outputs, shutters.... but I am struggling with dimmers and the way they are reporting their status. On/off status via sta/dim.0.out0 and dimming level via sta/dim.0.lvl0 -> 0-255

Does anybody have a good working template ?

I am trying this:
// on/off state
state_topic: p2m/sta/dim.0.out0
state_value_template: {{ iif(value == '0', 'dim.0.out0.off', 'dim.0.out0.onmem') }}

// brightness state
brightness_state_topic: p2m/sta/dim.0.lvl0
brightness_scale: 255

// on/off command
command_topic: m2p/cmd/ccmd/
payload_on: dim.0.out0.onmem
payload_off: dim.0.out0.off

// brightness command
brightness_command_topic: m2p/cmd/ccmd
brightness_command_template: dim.0.out0.set.{{value}}.1
on_command_type: brightness


thx, Jo
Folgende Benutzer bedankten sich: anwa

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Mai 2025 23:41 #98 von Ricotchet
Ricotchet antwortete auf Phc2Mqtt
Hi Jo im happy to read this good News im just thinking to go for home assistant and you comes up with this great news👍.
I cant help you with your question because i not using this Modules .
But maybe you can answer my questions.

Is the HW 1.2 supports HA ?
If yes is there a detail how to update the firmware?
Can the configuration be restored so the current things will still run?

Are you selling the new Ethernet Version and if yes what is the price ?

BR Paul

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mai 2025 11:43 #99 von oberp
oberp antwortete auf Phc2Mqtt
Hallo Paul,
die Firmware kannst du einfach mittels dem entspr. Menüpunkt im Hauptmenü aktualisieren. Die Konfiguration und das SRS-Programm bleiben auf jeden Fall erhalten.

Jo verkauft die Ethernetversion bereits (70€ + Versand).
Mir der WiFi-Version hatte ich immer Abbrüche, aber die Ethernetversion ist stabil. Sie läuft bei mir seit mehreren Wochen und hat die Peha-STM vollständig ersetzt. Die Programmierung habe mit dem SRS nachgebildet. Das funktioniert wunderbar. Fragen dazu sollten aber einen eigenen Thread bekommen :-).
Die Peha-STM hat nur noch ein leeres Programm und das Netzwerkkabel wurde entfernt. So stören sich die beiden Geräte nicht.
Gruß Torsten

PS.: Zum HA kann ich dir nicht viel erzählen, da ich eher Fan von openHAB bin :-)

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mai 2025 12:29 #100 von anwa
anwa antwortete auf Phc2Mqtt
Hi Jo, 
these are great news!

[... ] an ethernet/wifi version (3.1) of Phc2Mqtt is available [...] 

I would like to get one of them too! 

[...] starting with v5.0.1.4 firmware ( sim0njo.github.io/docs/Phc2MqttV5/ )
[...]

Thaks a lot for this great work and the awesome documentation! 

Greetings, 
Andreas

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mai 2025 13:13 #101 von simonjo
simonjo antwortete auf Phc2Mqtt
Not so fast...

When upgrading from firmware v4.x.y.z to v5.x.y.z you also need a new bootloader, otherwise there will be a signature mismatch.

To do this you need to use the ESP Web Installer from my website ( sim0njo.github.io/install/ ) and select the 'erase device' box, this will completely erase the ESP32 and flash all needed parts (bootloader/partition map/firmware image)

After this you can upgrade to newer v5 versions via the Firmware Upgrade webpage (OTA).

v5.x.y.z is also working on v1.x and v2.x hardware

mvg, Jo
 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mai 2025 13:15 #102 von simonjo
simonjo antwortete auf Phc2Mqtt
Details forgotten:
When erasing the device you loose all settings.
When doing Firmware Upgrade, settings are kept

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mai 2025 22:53 #103 von simonjo
simonjo antwortete auf Phc2Mqtt
Please send me an email to simonjo@telenet.be to order a module

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
31 Mai 2025 07:05 - 31 Mai 2025 07:10 #104 von Parmesan
Parmesan antwortete auf Phc2Mqtt
Good morning Jo,

together with ChatGPT i found a working solution for my case:

mqtt:
  sensor:
        - name: "Flur OG Dimmer Status"
      unique_id: "flur_og_dimmer_status"
      state_topic: "PHC/p2m/sta/dim.3"
      value_template: >
        {% set m = value | regex_search('out1:1') %}
        {{ 'on' if m else 'off' }}
        
    - name: "Flur OG Dimmer CmdStatus"
      state_topic: "PHC/p2m/cmd/dim.3"
      value_template: >
        {{ 'on' if 'out1:onmem' in value else 'off' }}
        
    - name: "Flur OG Dimmer Level"
      unique_id: "flur_og_dimmer_level"
      state_topic: "PHC/p2m/sta/dim.3=lvl1"
      value_template: >
        {{ value.split(':')[1] | int }}

template:
  - sensor:
      - name: "Flur OG Lichtstatus Final"
        unique_id: flur_OG_lichtstatus_final
        state: >
          {% if is_state('sensor.flur_og_dimmer_status', 'on') or
                is_state('sensor.flur_og_dimmer_cmdstatus', 'on') %}
            on
          {% else %}
            off
          {% endif %}

light:
  - platform: template
    lights:
      flur_og:
        friendly_name: "Beleuchtung Flur OG"
        value_template: "{{ is_state('sensor.flur_OG_lichtstatus_final', 'on') }}"
        level_template: >
          {% set val = states('sensor.flur_og_dimmer_level') %}
          {% if val.isdigit() and (val | int > 0) %}
            {{ val | int }}
          {% else %}
            1  # Minimaler gültiger Wert als Fallback
          {% endif %}
        turn_on:
          service: mqtt.publish
          data:
            topic: "PHC/m2p/cmd/ccmd"
            payload: "dim.3.out1.onmem"
        turn_off:
          service: mqtt.publish
          data:
            topic: "PHC/m2p/cmd/ccmd"
            payload: "dim.3.out1.off"
        set_level:
          service: mqtt.publish
          data_template:
            topic: "PHC/m2p/cmd/ccmd"
            payload: "dim.3.out1.set.{{ brightness }}.1"

Hopefully that helps.

Patrick
Letzte Änderung: 31 Mai 2025 07:10 von Parmesan.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
31 Mai 2025 21:23 #105 von simonjo
simonjo antwortete auf Phc2Mqtt
Hallo Patrick,

Thank you for sharing you solution, I will try it out on monday when I get back at home.

Grtz, Jo
 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.603 Sekunden