203 Commits

Author SHA1 Message Date
Theo Arends
91237dff5b Fix AXP driver 2024-02-12 22:14:20 +01:00
Theo Arends
bddd9a9caf Update AXP192_M5Stack_Core2.be 2024-02-12 21:47:46 +01:00
Theo Arends
280b71eb41 Fix M5Core2 audio when connecting ethernet 2024-02-12 21:25:19 +01:00
Theo Arends
238013ba90 Fix AXP192 register
- Fix AXP192 register use
- Add more delay to fix intermittent FT5206 init failure
2024-02-11 16:32:05 +01:00
Theo Arends
f88a8a6765 Add berry divider 2024-02-05 15:59:37 +01:00
s-hadinger
ff6be70ce1
LVGL library updated to v9.0.0, some small breaking changes in C, none in HASPmota (#20659)
* LVGL library updated to v9.0.0, some small breaking changes in C, none in HASPmota

* fix compilation

* Move lvgl_berry to LVGL_assets
2024-02-05 12:07:41 +01:00
sfromis
a757447e6d
Update webserver_async.be (#20638) 2024-02-01 14:46:02 +01:00
kubedzero
274f75829e
Fix typos regarding reboots (#20615) 2024-01-29 16:58:15 +01:00
s-hadinger
559789b4ec
HASPmota support for min and max attribute in slider (#20582) 2024-01-24 23:27:01 +01:00
Christian Baars
d5b4e96283
Berry example - FTP server (#20494) 2024-01-14 22:30:56 +01:00
chefpro
0b509f60b4
Add support for pipsolar inverter (#20408)
* Add support for pipsolar inverter

* Fix CI-Warnings

* Remove unneeded define

* Pipsolar: Fix dat result

* Add support for the rules engine

---------

Co-authored-by: Peter Rustler <peter@rustlerit.de>
2024-01-10 09:21:02 +01:00
s-hadinger
151e201048
Update debug_panel (#20449) 2024-01-09 19:59:21 +01:00
s-hadinger
8a012452e8
Berry debug_panel.tapp to display real-time heap and wifi rssi (#20436) 2024-01-08 23:15:48 +01:00
s-hadinger
e5a0da06dc
Update GPIO Viewer (#20425) 2024-01-07 23:19:53 +01:00
s-hadinger
f0d0cccee6
Berry GPIO Viewer fixes (#20423) 2024-01-07 19:03:56 +01:00
s-hadinger
2947fd8b06
GPIO viewer fix size (#20417) 2024-01-06 22:46:16 +01:00
s-hadinger
08a769a720
GPIO viewer in Berry initial version using async webserver (#20416) 2024-01-06 22:36:42 +01:00
s-hadinger
324689ee53
Berry gpio.read_pwm and gpio.read_pwm_resolution (#20414) 2024-01-06 21:22:45 +01:00
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.formatwith 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