Skip to content
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

Add GVH5184 driver and associated blerry.be changes #26

Merged
merged 10 commits into from
Jan 19, 2022

Conversation

ElksInNC
Copy link
Contributor

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.

@tony-fav tony-fav merged commit 1a32a6c into tony-fav:dev Jan 19, 2022
tony-fav added a commit that referenced this pull request Mar 1, 2022
* Start of Blerry 2
Config loading from json files

* revert default config as json
basic device setup framework

* basic handle and active scan loading from driver

* basic callback functionality
basic classes for advert interp

* working callback and advert reading

* create attribute and sensor classes

* pull in all tasmota settings v1 did
webui display trial
basic ATCpvvx support

* attributes in webui bc why not

* enable binary sensors
prep for working on discovery
"finish" ATCpvvx driver

* basic publishing

* rename config file, add initial dev driver

* fix webui, string_upper func, upper the macs

* initial sensor discovery

* protect helper functions as static methods

* add binary sensor discovery
add todo list

* add via_pubs support

* add general calibration

* add dewpoint calcs back into drivers
limit driver list to those supported

* add general precision support

* add driver for GVH5074
add spoofer, notes, config for GVH5074
add some notes to dev driver
add twos_complement helper function
do not require 'advanced' in user config
do not require 'override' in user config

* rename to drivers for V2

* rename device_notes to driver_notes

* port GVH5075 driver

* port IBSTH2 driver (need testers!)

* add version numbering

* Add support for Xiaomi_LYWSDCGQ
This could morph to a more generic Xiaomi driver

* Add ThermoPro TP59 Driver
todo: verify negative temp

* driver loading logs

* workaround for some tasmota versions

* Fix: Driver: ThermoPro_TP59: fix humidity

* first thwack at a v0.2.x README

* Support ATC/pvvx on Mi-Like with Xiaomi driver

* add "ignored" flag
tiny Inkbird change

* update readme for ignore flag

* beginning of setup script

* setup 2

* setup 3

* start some Tasmota Commands

* BlerySet/Get/DelDevice and BlerrySet/Get/DelConfig

* test auto download driver

* some log statements for dl driver

* try fix blerry setup delete itself

* try again

* try again again

* move drivers into drivers folder
update driver download location
change GVH5074 to use geti instead of an extra twos_complement function

* update gitignore

* Initial support for GVH5074 (#21) (#24)

* Initial 5074 testing

* Fixed decimal rounding issue

* Adding refrence material

* Now using geti for  two's complement

* Updated notes for new temperature method

* Fixed internal anchor link

Co-authored-by: cornking03 <cornking03+git@gmail.com>

Co-authored-by: cornking03 <84036755+cornking03@users.noreply.github.com>
Co-authored-by: cornking03 <cornking03+git@gmail.com>

* Reorganize for v0.2.x and beyond

* rename GVH5075 doc

* update URLs and cleanup

* missed 1 URL

* improve command code a bit.

* publish after 5 minutes even if no value change

* port switchbot temp and humidity

* port switchbot motion sensor (WoPresence)
fix readme to represent current devices

* port switchbot contact sensor (WoContact)
fix binary_sensor publish_available

* fix print message prefix in drivers

* Add GVH5184 driver and associated blerry.be changes (#26)

* Uncommented GVH5184

* Ported over from old dev-blerry2 branch

This is driver written by ElksInNC and refactored by Tony-fav.

* Create GVH5184.md

* Create 5184 fake packet file

* Create 4 fake packets - 2 for each sequence

* Revised documentation for 5184 driver

* Fake MAC for injection of fake p messages

* Updated p-strings with fake MAC

* Changed alias to match p-faker

* Re-arranged fake packets

* setup script check for blerry_config.json

* Update README

* Update README: Tasmota Commands

* blerry setup now enables BLE if it is not
cleanup todo

* setup script as tasmota command

* setup script can act as upgrade script

* Port GVH5182

* Update README

* Port GVH5183. All drivers now ported to v0.2.x

* calibration and precision only for numbers

* initial switchbot bot support (#29)

Switchbot Bot support (WoHand)
added concept of BlerryActions, autodiscovered to HA Buttons
Discovery Settings Fix

* Update README.md

* Updated Firmware. See NOTES.md

* SetOption8 Support

* add discovery override
enables using state_class measurement for HA statistics.

* firmware updates

* firmware fix, update, idk, it broke somehow before

* try fix setoption8 behavior on non numeric values

* autoexec.be line to load BLErry

* publish less often

* try web display less

* only change webui display every 10s

* use built in string.toupper function 🤦

* remove twos_complement function (geti does this)

* add GVH5179 support to GVH5074 driver

* Update blerry_driver_Xiaomi.be

* single purpose blerry script for RadonEye

* Add HHCCJCY01 to Xiaomi Driver

Co-authored-by: cornking03 <84036755+cornking03@users.noreply.github.com>
Co-authored-by: cornking03 <cornking03+git@gmail.com>
Co-authored-by: ElksInNC <77821967+ElksInNC@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants