tony-fav / tasmota-blerry

GNU General Public License v3.0
96 stars 29 forks source link

Add GVH5184 driver and associated blerry.be changes #26

Closed ElksInNC closed 2 years ago

ElksInNC commented 2 years ago

The following changes were made to add GVH5184

1) blerry.be - modified to uncomment driver placeholder - only change

2) blerry_driver_gvh5184.be created in the drivers folder

3) GVH5184 folder created in driver notes. Folder contains a) modified discovery and code flow description. Bit decoder for meat type included for posterity b) autoexec.be created with fake packets for two sequence1 and two sequence2 efforts. 4 permutations. c) JSON file for fake driver

TESTING

Testbench ESP32 Solo1 board. Serial connection Custom compiled Tasmota 10.1.0.1 branch with slight change to BLE duty cycle

1) all files in file space deleted 2) blerry.be, blerry_config.json, ATCpvvx and GVH5184 drivers loaded. 3) Real world devices for both drivers transmitting packets. 4) Validation - discovery took place in HA. Data observed in MQTT Explorer. Values correct in HA. Probes removed and alarms changed. All correctly reflected in HA. 5) Fake driver test. Added dev_GVH5184 to JSON (left real world devices). Copied 5184 autoexec.be to device and rebooted. Real world devices continued to work. Fake device was discovered in HA and updates as fake packets are injected.

This driver is ready for "production" in the current DEV branch of tasmota-blerry.