syssi / esphome-atorch-dl24

ESPHome component to monitor and control some Atorch meters via bluetooth
Apache License 2.0
56 stars 13 forks source link

Add Atorch S1 support #60

Closed kocoman2 closed 7 months ago

kocoman2 commented 1 year ago

is there plans to add atorch s1 model BLE ? thx

syssi commented 8 months ago

Do you own this device and could you provide a btsnoop capture?

Toniob commented 7 months ago

Hi. S1 is using the AC Meter packet type.

syssi commented 7 months ago

@Toniob Cool! Could you provide some raw payload examples / frames? They should be printed to the log if you increase the log level to VERY_VERBOSE.

Toniob commented 7 months ago

Here is a wireshark capture : https://cloud.6clones.net/s/ZZT84La3LJtoM3F . Is it ok for you ?

syssi commented 7 months ago

I've extracted these notifications/frames from the capture:

ff:55:01:01:00:09:06:00:00:28:00:00:07:00:00:00:ed:00:00:64:01:f4:00:53:00:20:00:0e:0d:08:3c:00:00:00:00:5f
ff:55:01:01:00:09:02:00:00:28:00:00:07:00:00:00:ed:00:00:64:01:f4:00:4f:00:1e:00:0e:0d:09:3c:00:00:00:00:e9
ff:55:01:01:00:09:01:00:00:28:00:00:08:00:00:00:ed:00:00:64:01:f4:00:59:00:1f:00:0e:0d:0a:3c:00:00:00:00:07
ff:55:01:01:00:08:fe:00:00:28:00:00:07:00:00:00:ed:00:00:64:01:f4:00:55:00:1f:00:0e:0d:0b:3c:00:00:00:00:1d
ff:55:01:01:00:09:02:00:00:28:00:00:08:00:00:00:ed:00:00:64:01:f4:00:58:00:20:00:0e:0d:0c:3c:00:00:00:00:3e
ff:55:01:01:00:09:04:00:00:28:00:00:07:00:00:00:ed:00:00:64:01:f4:00:53:00:20:00:0e:0d:0d:3c:00:00:00:00:dc
ff:55:01:01:00:09:0c:00:00:28:00:00:08:00:00:00:ed:00:00:64:01:f4:00:5b:00:20:00:0e:0d:0e:3c:00:00:00:00:0c
ff:55:01:01:00:09:07:00:00:28:00:00:08:00:00:00:ed:00:00:64:01:f4:00:5c:00:20:00:0e:0d:0f:3c:00:00:00:00:31
ff:55:01:01:00:09:05:00:00:28:00:00:08:00:00:00:ed:00:00:64:01:f4:00:5d:00:20:00:0e:0d:10:3c:00:00:00:00:de
ff:55:01:01:00:08:fc:00:00:28:00:00:08:00:00:00:ed:00:00:64:01:f4:00:60:00:1f:00:0e:0d:11:3c:00:00:00:00:04
ff:55:01:01:00:08:e8:00:00:28:00:00:07:00:00:00:ed:00:00:64:01:f4:00:53:00:20:00:0e:0d:12:3c:00:00:00:00:02
ff:55:01:01:00:08:e3:00:00:27:00:00:07:00:00:00:ed:00:00:64:01:f4:00:51:00:20:00:0e:0d:13:3c:00:00:00:00:79
syssi commented 7 months ago
[21:56:08][I][atorch_dl24:253]: Status report received
[21:56:08][D][sensor:094]: 'atorch-ac-meter voltage': Sending state 231.00000 V with 2 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter current': Sending state 0.04000 A with 3 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter power': Sending state 9.24000 W with 4 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter capacity': Sending state 0.07000 Ah with 3 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter energy': Sending state 2370.00000 Wh with 0 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter price per kwh': Sending state 1.00000  with 2 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter frequency': Sending state 50.00000 Hz with 1 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter power_factor': Sending state 0.08300  with 2 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter temperature': Sending state 32.00000 °C with 0 decimals of accuracy
[21:56:08][D][sensor:094]: 'atorch-ac-meter runtime': Sending state 51188.00000 s with 0 decimals of accuracy
[21:56:08][D][text_sensor:064]: 'atorch-ac-meter runtime formatted': Sending state '14h 13m 8s'
[21:56:08][D][sensor:094]: 'atorch-ac-meter dim backlight': Sending state 60.00000 s with 0 decimals of accuracy