-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request support for Atorch at4pw #1038
Comments
Useful information extracted from that dump: The device seems to be an electricity meter from the manual.
Seems to be a list of the dps, but not clear where this was captured from, as it is in the middle of a dump of other data that has obviously come from the cloud, so unsure whether this is representative of what will be received locally (it seems like a lot more data than is usual for this type of device)
Seems to match what would be expected from Query Things Data Model. There is also a different view of the schema in case something is missing from the above:
|
I downloaded and organized the list from Smart Live. Best Regards |
Local logs are needed. Tuya devices have a limit of 255 bytes per message, and that dps list is 434 bytes in length, so clearly hasn't been captured from the local protocol. |
I'm sorry but I don't quite understand what you're talking about to me. Please explain to me what you need more and what I should do to get it. |
After you attempt to add the device to HA as a tuya-local device, go to Settings / System / Logs and look for messages from Tuya local. In one of them there should be a list of dps. |
I forgot to include the files. Here they are: |
Potentially partially solved by #1139 , check if it works partially with that config since the manufacturer and display used are the same |
it seems I build the config. It has almost all data points except a few related to data/factory reset and prepaid energy charge name: Grid monitoring
products:
- id: tjtigg991kvoiiqi
name: ATorch AT4PBWP
primary_entity:
entity: switch
class: outlet
dps:
- id: 1
type: boolean
name: switch
secondary_entities:
- entity: number
category: config
name: Countdown
icon: "mdi:timer"
dps:
- id: 9
type: integer
name: value
unit: min
range:
min: 0
max: 360000
mapping:
- scale: 60
step: 60
- entity: sensor
class: current
name: Current
dps:
- id: 18
name: sensor
type: integer
class: measurement
unit: A
mapping:
- scale: 1000
- entity: sensor
class: power
name: Power
dps:
- id: 19
name: sensor
type: integer
class: measurement
unit: W
mapping:
- scale: 100
- entity: sensor
class: voltage
name: Voltage
dps:
- id: 20
name: sensor
type: integer
class: measurement
unit: V
mapping:
- scale: 100
- entity: number
category: config
name: Price
icon: "mdi:cash-multiple"
dps:
- id: 101
type: integer
name: value
range:
min: 0
max: 99999
mapping:
- scale: 100
- entity: sensor
name: Cost
icon: mdi:cash-clock
dps:
- id: 102
name: sensor
type: integer
class: monetary
precision: 2
unit: UAH
mapping:
- scale: 1000
- entity: number
category: config
name: Overvoltage value
icon: "mdi:flash-triangle"
dps:
- id: 104
type: integer
name: value
unit: V
range:
min: 1
max: 2750
mapping:
- scale: 10
- entity: number
category: config
name: Overcurrent value
icon: "mdi:flash-triangle"
dps:
- id: 105
type: integer
name: value
unit: A
range:
min: 1
max: 1000
mapping:
- scale: 10
- entity: number
category: config
name: Overpower value
icon: "mdi:flash-triangle"
dps:
- id: 106
type: integer
name: value
unit: W
range:
min: 1
max: 27500
- entity: select
category: config
icon: "mdi:web-box"
name: Language
dps:
- id: 107
type: string
name: option
mapping:
- dps_val: chinese
value: Chinese
- dps_val: english
value: English
- entity: number
category: config
name: Screen brightness
icon: "mdi:brightness-7"
dps:
- id: 108
type: integer
name: value
range:
min: 1
max: 9
- entity: number
category: config
name: Standby brightness
icon: "mdi:brightness-4"
dps:
- id: 109
type: integer
name: value
range:
min: 1
max: 9
- entity: number
category: config
name: Standby time
icon: "mdi:sun-clock"
dps:
- id: 110
type: integer
name: value
unit: s
range:
min: 3
max: 99
- entity: switch
name: Beep
category: config
dps:
- id: 111
type: boolean
name: switch
- entity: select
name: Switch mode
category: config
dps:
- id: 112
type: string
name: option
mapping:
- dps_val: controlled
value: Controlled
- dps_val: normally_open
value: Normally Open
- entity: select
category: config
name: Standby screen
dps:
- id: 117
type: string
name: option
mapping:
- dps_val: original
value: Original
- dps_val: measurement
value: Measurement
- entity: select
category: config
name: Display
dps:
- id: 118
type: string
name: option
mapping:
- dps_val: safety_protection
value: Safety protection
- dps_val: price_bill
value: Electricity price setting and bill
- dps_val: big_data
value: Big data
- entity: number
category: config
name: Undervoltage value
icon: "mdi:flash-triangle"
dps:
- id: 119
type: integer
name: value
unit: V
range:
min: 1
max: 2750
mapping:
- scale: 10
- entity: switch
name: Overlimit control enable
category: config
dps:
- id: 120
type: boolean
name: switch
- entity: sensor
name: Energy
class: energy
dps:
- id: 123
name: sensor
type: integer
class: total_increasing
unit: kWh
mapping:
- scale: 1000
- entity: sensor
name: Warning
class: enum
category: diagnostic
icon: "mdi:eye-circle-outline"
dps:
- id: 132
name: sensor
type: string
mapping:
- dps_val: "off"
value: "Off"
- dps_val: ovp
value: Overvoltage protection
- dps_val: ocp
value: Overcurrent protection
- dps_val: opp
value: Overpower protection
- dps_val: lvp
value: Undervoltage protection
- dps_val: le
value: Low Energy
- entity: sensor
class: frequency
name: Frequency
dps:
- id: 133
name: sensor
type: integer
class: measurement
unit: Hz
mapping:
- scale: 100
- entity: sensor
name: Power factor
class: power_factor
dps:
- id: 134
name: sensor
type: integer
class: measurement
mapping:
- scale: 100
- entity: sensor
name: CPU Temperature
category: diagnostic
class: temperature
dps:
- id: 135
name: sensor
type: integer
class: measurement
unit: C
- entity: select
category: config
name: Energy tariff
dps:
- id: 136
type: string
name: option
mapping:
- dps_val: single_rate
value: Single rate
- dps_val: stair
value: Stair
- dps_val: peak_valley_stair
value: Peak-valley
- entity: number
category: config
name: Overvoltage recovery delay
icon: "mdi:timer"
dps:
- id: 137
type: integer
name: value
mode: box
unit: min
range:
min: 0
max: 99
- entity: select
category: config
name: Poweron status
dps:
- id: 138
type: string
name: option
mapping:
- dps_val: open
value: "On"
- dps_val: colse
value: "Off"
- dps_val: memory
value: Memory
- entity: switch
name: Prepaiment enable
category: config
dps:
- id: 139
type: boolean
name: switch
- entity: sensor
name: Balance Energy
class: energy
category: diagnostic
dps:
- id: 140
name: sensor
type: integer
unit: kWh
mapping:
- scale: 1000
- entity: number
category: config
name: Low credit alarm
icon: "mdi:alarm-bell"
dps:
- id: 143
type: integer
name: value
mode: box
unit: kWh
range:
min: 10
max: 500 |
guffy1234, можете будь ласка мені допомогти з додаванням такого пристрою? |
@guffy1234 help me add the necessary sensors for this device? I installed Local Tuya and added this device, but I can't add sensors |
This is working with 1.0.9 firmware not with 1.1.1 |
Just for anyone else looking for this information => I did not know how/where to add the new device config from @guffy1234 thus checking also #1139 issue was able to pinpoint the location to be ./config/custom_components/tuya_local/devices (edited in Studio Code Server). In this folder I created new file with contents of the config provided by @guffy1234 and named the file atorch_at4pw.yaml (to be easily recognizable), Then after making sure no other integration was connecting to the device, added it manually to Tuya Local adding the already known Device ID, IP and Local Key. Protocol version is 3.4. Post this you will have the "atorch_at4pw" config automatically selected in next screen for devices close to your device. All works fine on 1.0.9 version (I have 31 entities / device), have no notification for update to 1.1.1 in the Smart Life app for any of my 4 devices. Note (did not know this until recently) there is an option in the menu of the device (last option in the menu) to set how often the device is sending values, lowest value being 3s. |
Here is a link to the json from Tuya: https://jsoneditoronline.org/#left=cloud.bcd999d58ddd4579ac00f762d849a1b2
Product ID: tjtigg991kvoiiqi
Link to instructions with description: http://en.atorch.cn/upload/20220629115640.pdf
The text was updated successfully, but these errors were encountered: