TuYa PJ-1203A

Purchased on Ali and installed 2 days ago:
image

It supported by zigbee2MQTT current version 1.34 and listed as TuYa PJ-1203A
I am using OH3 and MQTT .
You can manually add Generic MQTT Thing add copy to “Code” tab YAML code with configuration of channels:

UID: mqtt:topic:ohpi2:PJ1203A1
label: PJ1203A1
thingTypeUID: mqtt:topic
configuration:
  payloadNotAvailable: offline
  availabilityTopic: zigbee2mqtt/PJ1203A1/availability
  payloadAvailable: online
bridgeUID: mqtt:broker:ohpi2
location: Garage
channels:
  - id: ac_freq
    channelTypeUID: mqtt:number
    label: AC frequency
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"ac_frequency\".*)∩JSONPATH:$.ac_frequency
      unit: hz
  - id: voltage
    channelTypeUID: mqtt:number
    label: Voltage
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"voltage\".*)∩JSONPATH:$.voltage
      unit: V
  - id: current_b
    channelTypeUID: mqtt:number
    label: Current b
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"current_a\".*)∩JSONPATH:$.current_b
      unit: A
  - id: power_b
    channelTypeUID: mqtt:number
    label: Power b
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"power_b\".*)∩JSONPATH:$.power_b
      unit: W
  - id: energy_produced_b
    channelTypeUID: mqtt:number
    label: Energy produced b
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"energy_produced_b\".*)∩JSONPATH:$.energy_produced_b
      unit: kWh
  - id: update_frequency
    channelTypeUID: mqtt:number
    label: Update frequency
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"update_frequency\".*)∩JSONPATH:$.update_frequency
      unit: s
  - id: linkquality
    channelTypeUID: mqtt:number
    label: Link Quality
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"linkquality\".*)∩JSONPATH:$.linkquality
      unit: lqi
  - id: last_seen
    channelTypeUID: mqtt:datetime
    label: Last Seen
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"last_seen\".*)∩JSONPATH:$.last_seen
  - id: power_factor_b
    channelTypeUID: mqtt:number
    label: Power factor b
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"power_factor_b\".*)∩JSONPATH:$.power_factor_b
      unit: "%"
  - id: current_a
    channelTypeUID: mqtt:number
    label: Current a
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"current_a\".*)∩JSONPATH:$.current_a
      unit: A
  - id: power_a
    channelTypeUID: mqtt:number
    label: Power a
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"power_a\".*)∩JSONPATH:$.power_a
      unit: W
  - id: energy_a
    channelTypeUID: mqtt:number
    label: Energy a
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"energy_a\".*)∩JSONPATH:$.energy_a
      unit: kWh
  - id: energy_produced_a
    channelTypeUID: mqtt:number
    label: Energy produced a
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"energy_produced_a\".*)∩JSONPATH:$.energy_produced_a
      unit: kWh
  - id: power_factor_a
    channelTypeUID: mqtt:number
    label: Power factor a
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"power_factor_a\".*)∩JSONPATH:$.power_factor_a
      unit: "%"
  - id: energy_b
    channelTypeUID: mqtt:number
    label: Energy b
    description: null
    configuration:
      stateTopic: zigbee2mqtt/PJ1203A1
      transformationPattern: REGEX:(.*\"energy_b\".*)∩JSONPATH:$.energy_b
      unit: kWh

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.