Commit Graph

235 Commits

Author SHA1 Message Date
s-hadinger 54e88c2926
HASPmota type `chart` (#20372) 2024-01-02 12:16:50 +01:00
s-hadinger a0f6b7f1a3
Relax checks of Partition Wizard for newest Shelly (#20349) 2023-12-29 23:10:26 +01:00
s-hadinger 1f662a6dad
HASPmota added `haspmota.page_show()` to change page (#20333) 2023-12-28 22:19:58 +01:00
s-hadinger fbc827d11d
Berry fix leds brightness (#20292) 2023-12-22 18:10:34 +01:00
s-hadinger dc98f6e190
Simplify animate (#20254)
* Simplify animate

* make add_ methods idempotent
2023-12-17 20:47:18 +01:00
s-hadinger d6bf19190f
Small fixes to animate module (#20238) 2023-12-14 23:09:40 +01:00
s-hadinger c1f8ee5dbb
Refactoring of Berry `animate` module for WS2812 Leds (#20236) 2023-12-14 20:13:17 +01:00
s-hadinger f796915fd1
HASPmota `bar` fixed `val` attribute (#20208) 2023-12-11 22:13:24 +01:00
s-hadinger d61adb0b0c
Leds animation refactoring stage 1 (#20197) 2023-12-08 21:13:44 +01:00
Christian Baars 673202120f
instantiate correct class Rainbow_stripes (#20135) 2023-12-01 10:52:00 +01:00
s-hadinger de1b5929b8
Partition Wizard can be loaded dynamically (#19980)
* Partition Wizard can be loaded dynamically

* Centralize config

* Don't display duplicate buttons

* Fix test
2023-11-11 23:52:41 +01:00
s-hadinger 217c568301
HASPmota add styling properties (#19912) 2023-11-02 22:11:48 +01:00
s-hadinger 16307bc4b8
More audio refactoring for core3 (#19749) 2023-10-15 11:22:20 +02:00
s-hadinger c5c78f45d0
Fix audio_slm.be 2023-10-06 08:11:29 +02:00
s-hadinger 11aad19800
Audio support for Microphone + Berry (#19677) 2023-10-05 21:47:07 +02:00
s-hadinger 77cba731b9
Partition_Wizard compatible with grow on mount (#19645) 2023-10-02 23:32:55 +02:00
s-hadinger 375c825d32
More cleaning of audio for ESP32 (#19577) 2023-09-23 11:25:58 +02:00
s-hadinger 06da24df83
Update berry scripts for Shelly (#19535) 2023-09-22 17:32:34 +02:00
s-hadinger f56307e321
Fix to Partition_Wizard for shelly (#19056) 2023-07-06 20:59:50 +02:00
s-hadinger 492759567a
Partition Wizard is now able to convert to safeboot from Shelly partition layout (#19034) 2023-07-05 09:55:17 +02:00
s-hadinger 339c1cedb7
Zigbee firmware for Sonoff-ZB-Pro v20230507 (#18968) 2023-06-25 21:24:08 +02:00
s-hadinger 36de007909
Berry replace `string.format`with `format` (#18945)
* Berry replace `string.format`with `format`

* remove import.string
2023-06-23 18:33:31 +02:00
Norbert a19079b2ec
Fix spelling. (#18799) 2023-06-06 10:21:12 +02:00
s-hadinger 844caf51f9
Fixed HASPmota event when value is non-integer (fixes #18229) (#18791) 2023-06-04 20:06:04 +02:00
s-hadinger 2b76e8e668
HASPmota `meta` attribute and improved `berry_run` (#18685) 2023-05-17 21:40:05 +02:00
s-hadinger 8b2539a35a
Partition_Manager.tapp fixed (#18588) 2023-05-06 12:18:12 +02:00
s-hadinger 3fa42072b1
Fix HASPmota demo for the new Berry rule engine (#18570) 2023-05-03 17:33:21 +02:00
s-hadinger b235dffb29
Fix Berry hue_bridge (#18459) 2023-04-19 23:45:05 +02:00
s-hadinger 7167884f06
Haspmota change secondary colors for switch (#18133) 2023-03-07 19:16:59 +01:00
s-hadinger be56618ace
Add I2C example for M5Stack DigiClock (#18132) 2023-03-07 19:04:35 +01:00
s-hadinger 03815d827a
Berry energy_ctypes fixed accordingly (#17820) 2023-01-29 12:09:29 +01:00
David Gwynne 17d68750d9
WIP Tuya MCU Bridge driver alternative to the TuyaMCU driver (#17626)
* WIP Tuya MCU Bridge driver alternative to the TuyaMCU driver

The main difference is this driver does not try and wire MCU data points
(Dps) into the tasmota power/light/etc controls. Instead each Dp ends up
being relayed directly to MQTT and the rules subsystem. If you want to
change the state of something wired up to the MCU, you send tuyamcu
specific commands to manipulate the Dp.

Each Dp gets a type and id specific topic that is sent to MQTT. eg, Dp
id 1 type bool looks like tele/%topic%/TUYAMCUBOOL1. To change state you
send a TuyaMCUBool1 command (ie, the command index value is used as the
DpId, which is nice and symmetrical) with the new value.

Currently Rules operate on TuyaMCU#TypeDpid things, eg, "rule1 on
TuyaMCU#Bool1 do power %value% endon" toggle the power on the tasmota
device when the state of the thing on the MCU changes too.

The most obviously missing stuff at the moment is:

- better relaying of the wifi/mqtt status to the MCU
- handling wifi reset requests from the MCU
- low power stuff?
- support for sending status updates and device info queries.
- restarting the tuya mcu state machine?
- restarting the rx state machine when no bytes are rxed for a period of
  time
- time sync

* shorten the log prefix to TYB (3 chars).

requested by arendst

* use the local definition for the SET_DP command.

reaching back to the existing tuyamcu code isnt reliable.

pointed out by arendst

* put the todo list in the code so it can be tracked

* check the wifi/mqtt state every second and update the mcu if it changes.

* fix rule processing when Dp state is changed from a cmnd.

rule processing was done as part of publishing the state, but publishing
the state when it was updated by a command only happened if So59 was
set. split rule processing out of publish and call them separately as
needed.

publish is now called from teleperiod, status updates from the MCU,
and from cmnds if so59 is set. rules are called from status updates from
the MCU and from cmnds.

Co-authored-by: David Gwynne <dlg@defeat.lan.animata.net>
2023-01-08 17:35:45 +01:00
Mathias fc8039d960
Adding support for ME007-ULS narrow FoV ultrasonic distance sensor (#17376)
* Squashed commit of the following:

commit 1441459a47cff0a43aa61ce47510585ee03649f3
Merge: a9fcbd342 7e27945e5
Author: Mathias Buder <mathias_buder@bose.com>
Date:   Tue Dec 13 09:00:06 2022 +0100

    Merge branch 'development' into me007-narrow-fov-ultrasonic-sensor

commit a9fcbd3428445eb914816f608e064568d16b41e9
Merge: 7bb1049f5 d83119897
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Dec 12 10:33:06 2022 +0100

    Merge branch 'development' into me007-narrow-fov-ultrasonic-sensor

commit 7bb1049f51da8d064462b9499ed479a7675b368e
Merge: 83a5afa7a eee86f01a
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Fri Dec 9 09:30:29 2022 +0100

    Merge remote-tracking branch 'github/development' into me007-narrow-fov-ultrasonic-sensor

commit 83a5afa7ad27fcde1e67008e41a9bfd9c680cccd
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 8 14:47:13 2022 +0100

    [ME007] Added driver version number to MQTT message, small delay between consecutive measurement

commit 9b8667843154f02a23020e655d806ed76ae2e530
Merge: 39180f345 de408921e
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 8 10:12:45 2022 +0100

    Merge branch 'development' into me007-narrow-fov-ultrasonic-sensor

commit 39180f3451fce5f06504195faea0124d73dac1ee
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Wed Dec 7 16:41:26 2022 +0100

    [ME007] Added median filter

commit 01b68e0e6ca147ac03b63b8c71d035563e3bf13b
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Dec 5 23:08:57 2022 +0100

    [ME007] Simplified state maschine within me007_measure()

commit 1c74c6ed3e4097f09792a48420b2016c92e10353
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Dec 5 22:21:16 2022 +0100

    [ME007] Fixed issues from previous pull-request

commit 25b667120fd8d70fcfed36de44f1b7a17d0686be
Merge: 01e0b1809 e7d40b8d1
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Dec 5 10:46:25 2022 +0100

    Merge branch 'development' into me007-narrow-fov-ultrasonic-sensor

    # Conflicts:
    #	tasmota/include/tasmota_template.h

commit 01e0b18096bfffc67673e25152114694caaf110a
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Sun Dec 4 20:53:39 2022 +0100

    [ME007] Minor changes

commit ec00c9b85d223b78586c464bb92d1c7894357a40
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Fri Dec 2 13:08:06 2022 +0100

    [ME007] Added some measurement error statistics

commit c5cf65f82c42195752a88fd1553c74ab68c39cb2
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 22:38:07 2022 +0100

    [ME007] Fixed MQTT message

commit ae07d8dd77db47e20578f655ec057a63b30e65ce
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 21:56:20 2022 +0100

    [ME007] Minor code refactoring

commit d2b43ca70c716e1b637b9efd3b536506233e5365
Merge: 292f5f6c8 816fd78fb
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 16:48:38 2022 +0100

    Merge branch 'development' into me007-narrow-fov-ultrasonic-sensor

commit 292f5f6c81f1659eb225271cdd025eb77da02c6f
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 16:47:03 2022 +0100

    [ME007] Added logic to detect sensor at boot and during runtime

commit f17af404fee76bf63b30ed3c9d2175c4e01c03ca
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 12:32:19 2022 +0100

    [ME007] Added missing define into language files

commit 7a271abeca36139a43ef96bd461d46ba0c662901
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 12:19:23 2022 +0100

    [ME007] Improved snesor measuremnt function

commit fe42ebd1124e2246e4d7afd63c905c251e084b27
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Thu Dec 1 00:43:13 2022 +0100

    [ME007] Updated state maschine to trigger and receive sensor measurements

commit d137e6dec5104b4716428849d99c68bbf407ab42
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Wed Nov 30 20:35:31 2022 +0100

    [ME007] Added initial state maschine to trigger and receive sensor measurements

commit fc3da7b36849df162d9d5496a763ab2beb096aff
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Tue Nov 29 21:28:28 2022 +0100

    [ME007] Updated pin name

commit e9fa9fb771cf15dcd9ed8b63b9194154543ef10e
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Nov 28 22:02:34 2022 +0100

    [ME007] Fixed issue that sensor GPIOs not shown in drop-down list

commit a13e42660183eb4ab91007ca0ea6bf1544687556
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Nov 28 15:06:34 2022 +0100

    [ME007] Added sensor into supported feature list

commit dec17b59ce2905124386f8c90d81656bf104c844
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Nov 28 15:01:58 2022 +0100

    [ME007] Removed log message in Xsns23()

commit 11f479d2ec9d3f4e7552c2f78cdc83914c5b8b94
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Mon Nov 28 10:47:55 2022 +0100

    [ME007] Added GPIOs to tasmota_template_legacy.h and berry

commit 23aec8e5ff4e9fb8ef7d3b01a707641accc1e01e
Author: Mathias Buder <mathias.buder@gmail.com>
Date:   Sun Nov 27 20:10:53 2022 +0100

    [ME007] Initial ME007 driver API setup

* [ME007] Reverted change in .gitignore and platform.ini

* [ME007] Removed dependency to stdlib.h

* [ME007] Adjusted unit to cm

* [ME007] Reverted change in tasmota_template_legacy.h

* [ME007] Changed sensor message tag to three characters

* [ME007] Disabled sensor in my_user_config.h

* [ME007] Added driver code size into commente

Co-authored-by: Mathias Buder <mathias_buder@bose.com>
2022-12-14 11:52:26 +01:00
Stephan Hadinger d40c24d6d3 Berry ArtNet implementation 2022-11-20 22:04:30 +01:00
Stephan Hadinger 0e5f79da9c Fix to Leds set_bytes, and added persistance to ArtNet Berry 2022-11-13 18:05:13 +01:00
Theo Arends a69032d2a1
Merge pull request #16982 from hrandib/development
Add TM1637 driver written in Berry
2022-11-06 12:26:54 +01:00
Stephan Hadinger a5e7917704 ESP32 DMX ArtNet optimization to avoid any object allocation and avoid garbage collector pauses 2022-11-03 21:54:21 +01:00
Dmytro Shestakov f3b6cd1d73 Add TM1637 driver written in Berry
It allows to use this type of display in addition to any standard
Tasmota display simultaneously
2022-11-03 10:25:14 +02:00
Stephan Hadinger b2e9001ca2 Support for DMX ArtNet Led matrix animations 2022-11-02 22:37:53 +01:00
Stephan Hadinger 549f13f7a8 Fix Berry `gpio.INPUT` conflict 2022-10-25 11:49:39 +02:00
Stephan Hadinger 2692ef4486 Fix DisplayCalibrate 2022-10-23 18:47:04 +02:00
Stephan Hadinger eb3de9c73a Support for Flash size 32/64/128 MB in Partition Wizard and auto-resize 2022-10-16 18:32:46 +02:00
Stephan Hadinger fac1b89afa HASPmota support for TTF fonts 2022-10-08 15:19:38 +02:00
Stephan Hadinger 0c1ad0254f LVGL HASPmota demo and antiburn update 2022-10-07 17:50:25 +02:00
Stephan Hadinger 51f4bae703 HASPmota support for switch `val` attribute 2022-10-04 18:03:11 +02:00
Stephan Hadinger 8df2d10f52 HASPmota val_rule ignores non numeric matches 2022-09-09 22:23:43 +02:00
Stephan Hadinger e1e04d9525 HASPmota increase details for exceptions 2022-09-09 21:38:28 +02:00
Stephan Hadinger dc1221f709 More fixes 2022-09-06 23:02:08 +02:00
Stephan Hadinger 18a950f61c Berry fix for stricter mode 2022-09-06 22:54:24 +02:00
Stephan Hadinger 87af685160 Fix HASPmota.be with new strict mode 2022-09-06 20:00:01 +02:00
Stephan Hadinger d3fbc98601 ZIgbee extend ZNP timeout 2022-09-02 22:27:46 +02:00
Stephan Hadinger 3fe9eec276 Berry bootloader flasher 2022-08-28 09:39:24 +02:00
Stephan Hadinger 979288570e HASPmota make `spinner` editable 2022-08-26 08:37:28 +02:00
JeroenSt 1cc091e4fa Added ModbusBridge 2022-07-19 14:10:12 +02:00
Theo Arends cc9c6299ca Consolidate I2S GPIOs 2022-07-11 15:49:57 +02:00
Stephan Hadinger 7e0f69e935 Partition Wizard use ota.tasmota.com 2022-07-02 00:13:27 +02:00
Stephan Hadinger 06f1562874 Berry add documentation link to Partition_Wizard 2022-06-17 22:19:54 +02:00
Stephan Hadinger 9b26c01dd0 Berry virtual member can return nil 2022-06-15 22:00:31 +02:00
Stephan Hadinger af41d81c5a Berry ctypes small optimization 2022-06-07 22:20:42 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00
Stephan Hadinger 7977381a94 fix_compilation 2022-05-26 19:31:11 +02:00
Stephan Hadinger b3415c9071 Zigbee flasher for Sonoff ZB Bridge Pro - dump + firmware 2022-05-26 19:24:50 +02:00
Stephan Hadinger a8aa6fac00 Zigbee flasher for Sonoff Zigbee Bridge Pro 2022-05-26 18:42:00 +02:00
Stephan Hadinger 086c4d6371 Rename OpenHASP to HASPmota 2022-05-20 21:29:39 +02:00
Stephan Hadinger e94dbe366a Partition Manager rename SPIFFS to filesystem 2022-05-14 11:37:56 +02:00
s-hadinger 078f44eed5
Merge pull request #15615 from s-hadinger/openhasp_dropdown
OpenHASP support for dropdown attributes
2022-05-13 22:48:07 +02:00
Stephan Hadinger c4767578a0 OpenHASP fix dropdown direction 2022-05-13 22:39:51 +02:00
Stephan Hadinger 1e55a9ba50 OpenHASP support for dropdown attributes 2022-05-13 22:28:17 +02:00
Jason2866 63f45d1a1e
Delete Partition_wizard.tapp 2022-05-13 21:53:48 +02:00
Stephan Hadinger 9971e5924c Partition Wizard compiled bytecode 2022-05-13 16:20:04 +02:00
Stephan Hadinger e6411a5d69 OpenHASP support for roller's text attribute 2022-05-13 12:12:48 +02:00
Stephan Hadinger aa1a0179a4 OpenHASP event value 2022-05-11 22:50:17 +02:00
Stephan Hadinger f8668a5396 Partition Wizard v1 2022-05-11 09:52:40 +02:00
Stephan Hadinger b5206206d7 OpenHSAP fix `val` attribute for `roller` and `slider` 2022-05-10 21:31:18 +02:00
Stephan Hadinger 02cafa1c85 OpenHASP support string in template 2022-05-06 18:57:49 +02:00
Stephan Hadinger 66aa714524 Berry partition manager display factory partition 2022-04-30 18:50:05 +02:00
Stephan Hadinger c394830f99 Berry make partition manager compatible with single OTA 2022-04-30 17:00:24 +02:00
Stephan Hadinger 453e7b3a6b Berry update gpio list with SDIO and more 2022-04-30 13:18:22 +02:00
s-hadinger 950933cafa
Berry rename solidified partition to partition_core (#15482)
* Berry rename solidified partition to partition_core

* Add init to force `partition_core` as global
2022-04-29 12:03:19 +02:00
Norbert Richter b1933f7c0e
Rename flowratemeter 2022-04-27 17:44:07 +02:00
Norbert Richter d7d71cd9c8
Add flowmeter (YF-DN50 and similary) 2022-04-27 17:44:06 +02:00
Stephan Hadinger be180c2da5 Berry simplify drivers 2022-04-26 19:43:58 +02:00
Stephan Hadinger 2106c5aa56 OpenHASP fix touch event 2022-04-25 19:24:55 +02:00
blakadder b45fd4f541
Update partition.be
fix typo
2022-04-25 14:54:45 +02:00
Stephan Hadinger d30faab8b2 Fix openhasp demo 2022-04-25 12:03:18 +02:00
s-hadinger 3861736d98
Merge pull request #15452 from s-hadinger/rename_3_btn_driver
Rename 3 buttons driver
2022-04-25 08:47:04 +02:00
Stephan Hadinger 773c7290f4 Rename 3 buttons driver 2022-04-25 08:43:58 +02:00
Stephan Hadinger 5e7bdbf586 OpenHASP full demo 2022-04-24 18:46:01 +02:00
Stephan Hadinger 91b58679f3 OpenHASP add page events 2022-04-24 16:41:23 +02:00
Stephan Hadinger efb2423b88 OpenHASP support for qrcode 2022-04-24 10:18:40 +02:00
s-hadinger a7db8ea014
Merge pull request #15433 from s-hadinger/m5stack_tough_axp
AXP192 driver for M5Stack Tough
2022-04-23 09:29:05 +02:00
Stephan Hadinger e1c1e52d64 AXP192 driver for M5Stack Tough 2022-04-23 09:28:16 +02:00
Stephan Hadinger 75ee0f3c35 Update openhasp.tapp with latest version 2022-04-23 09:27:20 +02:00
Stephan Hadinger 81a8ff273a OpenHASP memory optimization 2022-04-22 22:36:45 +02:00
Stephan Hadinger 7c48ba0c73 LVGL and OpenHASP for M5Stick 2022-04-14 23:19:05 +02:00
Stephan Hadinger ad5a31993a OpenHASP solidified 2022-04-09 11:40:41 +02:00
Stephan Hadinger e3ebffcc72 OpenHASP v1.0 2022-04-06 21:29:24 +02:00
Stephan Hadinger d9cfe6128a Berry prep for OpenHASP 2022-04-05 21:38:43 +02:00
s-hadinger 01eade7e47
Berry native class array (#15178)
* Berry simplified classes in Flash

* Remove be_load_lvgl_classes
2022-03-19 14:27:03 +01:00
Stephan Hadinger 2e670be61c Update to latest GPIO types 2022-03-17 22:58:42 +01:00