forked from stav242/esphome-canbus-peugeot-boxer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesphome-canbus.yaml
791 lines (644 loc) · 23.6 KB
/
esphome-canbus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
substitutions:
name: "esphome-canbus"
friendly_name: ESPHome CANbus
esphome:
name: ${name}
friendly_name: ${friendly_name}
min_version: 2024.6.0
name_add_mac_suffix: false
project:
name: esphome.web
version: dev
esp32:
board: esp32dev
framework:
type: arduino
logger:
level: INFO
time:
- platform: homeassistant
id: homeassistant_time
api:
# ... (If you need API, add your configuration here) ...
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
output_power: 8.5
captive_portal:
# ... (If you need captive portal, add your configuration here) ...
dashboard_import:
package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
import_full_config: true
web_server:
# ... (If you need web server, add your configuration here) ...
canbus:
- platform: esp32_can
id: my_canbus
tx_pin: GPIO01
rx_pin: GPIO03
can_id: 0x0000000
bit_rate: 50kbps
on_frame:
#HeadLights_Status
#ID:0x06214000,Byte1,0x68
- can_id: 0x2214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Check if bit 12 is high
if ((x[1] & 0x68) == 0x68) {
id(Headlights_Status).publish_state(true);
} else {
id(Headlights_Status).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x2214000","HeadLights_Status", "%s", &b[0] );
}
#HazardLights_Status
#ID:0x06214000,Byte2,0x60
- can_id: 0x2214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Check if bits 22 and 23 are high
if ((x[2] & 0x60) == 0x60) {
id(HazardLights_Status).publish_state(true);
} else {
id(HazardLights_Status).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x2214000","HazardLights_Status", "%s", &b[0] );
}
#FrontDoor_Status
#ID:0x04394100,Byte1,0xC0
- can_id: 0x04394100
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[1] & 0xC0) == 0xC0) {
id(FrontDoor_Status).publish_state(true);
} else {
id(FrontDoor_Status).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x2214000","FrontDoor_Status", "%s", &b[0] );
}
#RearSlidingDoor_Status
#ID:0x06214000,Byte1,0x30
- can_id: 0x06214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[1] & 0x30) == 0x30) {
id(RearSlidingDoor_Status).publish_state(true);
} else {
id(RearSlidingDoor_Status).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06214000","RearSlidingDoor_Status", "%s", &b[0] );
}
#RearDoors_Status
#ID:0x06214000,Byte1,0x40
- can_id: 0x06214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[1] & 0x40) == 0x40) {
id(RearDoors_Status).publish_state(true);
} else {
id(RearDoors_Status).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06214000","RearDoors_Status", "%s", &b[0] );
}
#Fob_Unlock_FrontDoors_Button
#ID:0x02294000,Byte5,0x30
#- can_id: 0x06214000
- can_id: 0x02294000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[5] & 0x80) == 0x80) {
id(Fob_Unlock_Button_UNLOCK).publish_state(true);
} else {
id(Fob_Unlock_Button_UNLOCK).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x02294000","Fob_Unlock_FrontDoors_Button", "%s", &b[0] );
}
#Fob_Lock_Button
#ID:0x02294000,Byte5,0x08
- can_id: 0x02294000
#- can_id: 0x06214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[5] & 0x08) == 0x08) {
id(Fob_Unlock_Button_NO_ACION).publish_state(true);
} else {
id(Fob_Unlock_Button_NO_ACION).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x02294000","Fob_Lock_Button", "%s", &b[0] );
}
#Fob_Unlock_RearDoors_Button
#ID:0x02294000,Byte:6,0x80
#- can_id: 0x06214000
- can_id: 0x02294000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[6] & 0x80) == 0x80) {
id(Fob_Lock_Button).publish_state(true);
} else {
id(Fob_Lock_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x02294000","Fob_Unlock_RearDoors_Button", "%s", &b[0] );
}
#Media_Volume_Up_Button
#ID:0x06284000,Byte:0,0x80
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x80) == 0x80) {
id(Media_Volume_Up_Button).publish_state(true);
} else {
id(Media_Volume_Up_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Volume_Up_Button", "%s", &b[0] );
}
#Media_Volume_Down_Button
#ID:0x06284000,Byte:0,0x40
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x40) == 0x40) {
id(Media_Volume_Down_Button).publish_state(true);
} else {
id(Media_Volume_Down_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Volume_Down_Button", "%s", &b[0] );
}
#Media_Mute_Button
#ID:0x06284000,Byte:0,0x20
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x20) == 0x20) {
id(Media_Mute_Button).publish_state(true);
} else {
id(Media_Mute_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Mute_Button", "%s", &b[0] );
}
#Media_Talk_Button
#ID:0x06284000,Byte:1,0x40
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[1] & 0x40) == 0x40) {
id(Media_Talk_Button).publish_state(true);
} else {
id(Media_Talk_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Talk_Button", "%s", &b[0] );
}
#Media_Select_Up_Button
#ID:0x06284000,Byte:0,0x10
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x10) == 0x10) {
id(Media_Select_Up_Button).publish_state(true);
} else {
id(Media_Select_Up_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Select_Up_Button", "%s", &b[0] );
}
#Media_Select_Down_Button
#ID:0x06284000,Byte:0,0x08
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x08) == 0x08) {
id(Media_Select_Down_Button).publish_state(true);
} else {
id(Media_Select_Down_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Select_Down_Button", "%s", &b[0] );
}
#Media_Phone_Call_Button
#ID:0x06284000,Byte:0,0x02
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x02) == 0x02) {
id(Media_Phone_Call_Button).publish_state(true);
} else {
id(Media_Phone_Call_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Phone_Call_Button", "%s", &b[0] );
}
#Media_Phone_Hangup_Button
#ID:0x06284000,Byte:0,0x01
- can_id: 0x06284000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[0] & 0x01) == 0x01) {
id(Media_Phone_Hangup_Button).publish_state(true);
} else {
id(Media_Phone_Hangup_Button).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x06284000","Media_Phone_Hangup_Button", "%s", &b[0] );
}
#Indicator_Left
#ID:0x0221400,Byte2,0x40
- can_id: 0x02214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[2] & 0x40) == 0x40) {
id(Indicator_Left).publish_state(true);
} else {
id(Indicator_Left).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x2214000","Indicator_Left", "%s", &b[0] );
}
#Indicator_Right
#ID:0x0221400,Byte2,0x20
- can_id: 0x02214000
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
if ((x[2] & 0x20) == 0x20) {
id(Indicator_Right).publish_state(true);
} else {
id(Indicator_Right).publish_state(false);
}
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x2214000","Indicator_Right", "%s", &b[0] );
}
#Engine_RPM
#ID:0x04214001,Bytes 6&7
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
ESP_LOGD("can id 0x04214001", "%s", &x[0]);
// Extract speed from the CAN message
uint16_t speed_raw = (x[6] << 8) | x[7];
float speed = speed_raw * 0.25;
// Convert speed to a string
String rpm_str = String(speed, 1); // Format with 1 decimal place#
// Convert the String back to a float
float rpm_float = rpm_str.toFloat();
id(Engine_RPM).publish_state(rpm_float);
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x04214001","Engine_RPM", "%s", &b[0] );
}
#Engine_MAF
#ID:0x04214001,Bytes 2&3
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Extract MAF pressure
uint16_t maf_bytes = (x[2] << 8) | x[3];
// Convert MAF
float maf = (float)maf_bytes * 0.01;
// Publish vehicle speed to Home Assistant
id(Engine_MAF).publish_state(maf);
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x04214001","Engine_MAF", "%s", &b[0] );
}
#Vehicle_Speed
#ID:0x04214001,Bytes 2&3
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
}
#Throttle_Position
#ID:0x04214001,Bytes 2&3
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Extract Throttle Position
}
#Fuel_Level
#ID:0x04214001, Bytes 8&9
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Extract fuel level bytes
uint16_t fuel_level_bytes = (x[8] << 8) | x[9];
// Convert fuel level bytes to percentage (adjust scaling factor as needed)
float fuel_level_percent = (float)fuel_level_bytes / 2.55;
// Publish fuel level to Home Assistant
id(fuel_level).publish_state(fuel_level_percent);
std::string b(x.begin(), x.end());
ESP_LOGD("can id 0x04214001","Fuel_Level", "%s", &b[0] );
}
#Date & Time
# ID:0x0C214003, 6 Bytes
- can_id: 0x0C214003
use_extended_id: true
then:
- lambda: |-
if (x.size() > 5) {
char date_str[11];
snprintf(date_str, sizeof(date_str), "%02X/%02X/%02X%02X", x[2],x[3],x[4],x[5]);
char time_str[6];
snprintf(time_str, sizeof(time_str), "%02X:%02X", x[0],x[1]);
id(can_bus_date).publish_state(date_str);
id(can_bus_time).publish_state(time_str);
}
#Odometer
#ID:0x04214001, Bytes 3,4,5,6
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Extract Odometer Reading
uint32_t odometer_raw = (x[3] << 8) | x[4];
float odometer_miles = odometer_raw * 0.1; // Convert to miles
ESP_LOGI("Odometer", "Odometer: %.2f miles", odometer_miles);
id(odometer).publish_state(odometer_miles);
}
#Coolant
#ID:0x04214001, Bytes 3,4,5,6
- can_id: 0x04214001
use_extended_id: true
then:
- lambda: |-
if (x.size() > 0) {
// Extract Coolant Temperature
uint16_t coolant_temp_raw = (x[4] << 8) | x[5];
float coolant_temp_celsius = (float)coolant_temp_raw * 0.1 - 40.0; // Adjust scaling factor and offset as needed
ESP_LOGI("Coolant Temperature", "Coolant Temperature: %.2f °C", coolant_temp_celsius);
id(coolant_temp).publish_state(coolant_temp_celsius);
}
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 10s
entity_category: "diagnostic"
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "Signal %"
entity_category: "diagnostic"
device_class: ""
sensor:
- platform: template
name: "Engine RPM"
id: engine_rpm
unit_of_measurement: "rpm"
- platform: template
name: "Fuel Level"
id: fuel_level
unit_of_measurement: "%"
- platform: template
name: "Throttle Position"
id: throttle_position
unit_of_measurement: "%"
- platform: template
name: "Engine RPM"
id: Engine_RPM
unit_of_measurement: "rpm"
- platform: template
name: "Vehicle Speed"
id: Vehicle_Speed
unit_of_measurement: "mph"
- platform: template
name: "Engine MAF"
id: Engine_MAF
unit_of_measurement: "%"
- platform: template
name: "Odometer"
id: odometer
unit_of_measurement: "mi"
- platform: template
name: "Coolant Temp"
id: coolant_temp
unit_of_measurement: "°C"
binary_sensor:
- platform: template
name: "Headlight Status"
id: Headlights_Status
device_class: light
- platform: template
name: "Rear Doors Status"
id: RearDoors_Status
device_class: door
- platform: template
name: "Rear SlidingDoor Status"
id: RearSlidingDoor_Status
device_class: door
- platform: template
name: "FrontDoor Status"
id: FrontDoor_Status
device_class: door
- platform: template
name: "HazardLight Status"
id: HazardLights_Status
device_class: light
- platform: template
name: Fob_Unlock_FrontDoors_Button
id: Fob_Unlock_FrontDoors_Button
device_class: power
- platform: template
name: Fob_Unlock_RearDoors_Button
id: Fob_Unlock_RearDoors_Button
device_class: power
- platform: template
name: Fob_Lock_Doors_Button
id: Fob_Lock_Doors_Button
device_class: power
- platform: template
name: "Media Volume Up Button"
id: Media_Volume_Up_Button
device_class: power
- platform: template
name: "Media Volume Down Button"
id: Media_Volume_Down_Button
device_class: power
- platform: template
name: "Media Mute Button"
id: Media_Mute_Button
device_class: power
- platform: template
name: "Media Talk Button"
id: Media_Talk_Button
device_class: power
- platform: template
name: "Media Select Up Button"
id: Media_Select_Up_Button
device_class: power
- platform: template
name: "Media Select Down Button"
id: Media_Select_Down_Button
device_class: power
- platform: template
name: "Media Phone Call Button"
id: Media_Phone_Call_Button
device_class: power
- platform: template
name: "Media Phone Hangup Button"
id: Media_Phone_Hangup_Button
device_class: power
- platform: template
name: "Indicator Left"
id: Indicator_Left
device_class: power
- platform: template
name: "Indicator Right"
id: Indicator_Right
device_class: power
- platform: template
name: "Parking Brake"
id: parkingbrake
device_class: power
- platform: template
name: "Brake Pedal"
id: brake_pedal
device_class: power
- platform: template
name: "Key Present"
id: key_present
device_class: presence
- platform: template
name: "Ignition On"
id: ignition_on
device_class: power
text_sensor:
- platform: template
name: "CAN Bus Time"
id: can_bus_time
- platform: template
name: "CAN Bus Date"
id: can_bus_date
switch:
# ... (Your switch definitions remain the same) ...
button:
- platform: template
name: "Sync Time"
on_press:
lambda: |-
// Helper function to convert decimal to BCD (Binary Coded Decimal)
auto dec_to_bcd = [](uint8_t val) -> uint8_t {
return ((val / 10) << 4) | (val % 10);
};
// Retrieve the current time and date from Home Assistant
auto time = id(homeassistant_time).now();
// Log raw time components for debugging purposes
ESP_LOGI("canbus", "Raw Time: Hour=%d Minute=%d Day=%d Month=%d Year=%d",
time.hour, time.minute, time.day_of_month, time.month, time.year);
// Encode time and date components into BCD format
uint8_t hour = dec_to_bcd(time.hour); // Hour (e.g., 8 -> 0x08)
uint8_t minute = dec_to_bcd(time.minute); // Minute (e.g., 33 -> 0x33)
uint8_t day = dec_to_bcd(time.day_of_month); // Day (e.g., 19 -> 0x19)
uint8_t month = dec_to_bcd(time.month); // Month (e.g., 11 -> 0x11)
uint8_t year_high = dec_to_bcd(time.year / 100); // High part of year (e.g., 20 for 2024 -> 0x20)
uint8_t year_low = dec_to_bcd(time.year % 100); // Low part of year (e.g., 24 for 2024 -> 0x24)
// Construct the CAN data array with encoded values
uint8_t data[] = {
hour, // Hour in BCD
minute, // Minute in BCD
day, // Day in BCD
month, // Month in BCD
year_high, // High part of year in BCD
year_low // Low part of year in BCD
};
// Define the CAN ID and transmission flags for an extended frame
uint32_t can_id = 0x18FF2301; // Example 29-bit Extended CAN ID
bool is_extended = true; // Use extended ID (29-bit)
bool is_rtr = false; // Not a Remote Transmission Request frame
// Log the encoded BCD values for verification
ESP_LOGI("canbus", "Encoded BCD Time Values: Hour=0x%02X Minute=0x%02X Day=0x%02X Month=0x%02X Year High=0x%02X Year Low=0x%02X",
hour, minute, day, month, year_high, year_low);
// Send the CAN frame with the constructed data
id(my_canbus).send_data(can_id, is_extended, is_rtr, std::vector<unsigned char>(data, data + sizeof(data)));
// Log the transmission event for debugging
ESP_LOGI("canbus", "Extended CAN frame sent with ID=0x%08X, Length=%d",
can_id, sizeof(data));
- platform: template
name: "Front Door Unlock"
id: front_door_unlock
icon: mdi:door-open
turn_on_action:
- canbus.send:
can_id: 0x02294000
use_extended_id: true
data: [0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00]
turn_off_action:
- canbus.send:
can_id: 0x02294000
use_extended_id: true
data: [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
- platform: template
name: "Rear Door Unlock"
id: rear_door_unlock
icon: mdi:door-open
turn_on_action:
- canbus.send:
can_id: 0x02294000
use_extended_id: true
data: [0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00]
turn_off_action:
- canbus.send:
can_id: 0x02294000
use_extended_id: true
data: [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]