J. Nick Koston
ee0c7d87a3
Merge remote-tracking branch 'origin/dev' into HEAD
2026-11-14 08:37:20 -06:00
J. Nick Koston
90d06e0967
Merge remote-tracking branch 'origin/dev' into hubfn-migrate-d
2026-11-05 11:46:32 -06:00
J. Nick Koston
865c9b0048
Merge dev into hubfn-migrate-d
2026-11-04 21:09:07 -06:00
J. Nick Koston
ebbf41dc00
Merge hubfn-migrate-c into hubfn-migrate-d
2026-11-04 20:18:40 -06:00
J. Nick Koston
6441c80313
[motion] Tidy the sensor type hints, publisher asserts and define order
2026-11-04 20:11:27 -06:00
J. Nick Koston
85b21c1e68
[motion] Leave the systa_bus and mk2pvrouter migration to its own PR
...
That migration now comes after the motion PRs in the chain.
2026-11-04 20:11:27 -06:00
J. Nick Koston
5404ffaab6
[motion] Drop the binary sensor setup priority override
...
The start-up order of the initial false needs no change.
2026-11-04 20:11:27 -06:00
J. Nick Koston
ba78de9088
[motion] Set up binary sensors before the hub's first update
2026-11-04 20:11:27 -06:00
J. Nick Koston
d11eeeeb53
[systa_bus] Type the deprecated platform id as a string for the language schema
2026-11-04 20:11:27 -06:00
J. Nick Koston
42e5646f35
[motion] Use HUB_PUBLISHER and the derived data publisher name
2026-11-04 20:11:27 -06:00
J. Nick Koston
af91a598fa
[motion] Publish children through a generated hub function
2026-11-04 20:11:27 -06:00
J. Nick Koston
acc7746e22
[mk2pvrouter] Follow the HubFunction publisher convention
...
Rename the functions to value and dump publishers declared with HUB_PUBLISHER,
pass the hub's tag to the children's dump helpers, rename the child schema,
and test the hub against a recorder of the last published tag and value.
2026-11-04 20:11:27 -06:00
J. Nick Koston
05708acebc
[systa_bus] Follow the HubFunction publisher convention
...
Rename the functions to aqua and dump publishers declared with HUB_PUBLISHER,
log the children's dump lines through small C++ helpers with the bus's tag,
move aqua_temperature() into systa_bus.h, and deprecate the ignored platform
id and setup_priority keys instead of declaring an id that is never created.
2026-11-04 20:11:27 -06:00
J. Nick Koston
31e409b1cf
[systa_bus] Keep accepting the platform id and setup_priority keys
2026-11-04 20:11:27 -06:00
J. Nick Koston
ecd664523c
[mk2pvrouter] Publish children through a generated hub function
2026-11-04 20:11:27 -06:00
J. Nick Koston
567cbbe598
[systa_bus] Publish children through a generated hub function
2026-11-04 20:11:27 -06:00
J. Nick Koston
390c3216b1
Merge remote-tracking branch 'origin/hubfn-migrate-c' into hubfn-migrate-d
...
# Conflicts:
# esphome/components/motion/__init__.py
# esphome/components/motion/motion_component.h
# esphome/core/defines.h
# tests/component_tests/motion/test_hub_function.py
2026-11-04 12:56:01 -06:00
J. Nick Koston
ca7aa429df
[motion] Tidy the sensor type hints, publisher asserts and define order
2026-11-04 12:52:49 -06:00
J. Nick Koston
eb48e6a07a
[motion] Leave the systa_bus and mk2pvrouter migration to its own PR
...
That migration now comes after the motion PRs in the chain.
2026-11-04 12:52:49 -06:00
J. Nick Koston
fd16d0c0a8
[motion] Drop the binary sensor setup priority override
...
The start-up order of the initial false needs no change.
2026-11-04 12:52:49 -06:00
J. Nick Koston
b0000fffc3
[motion] Set up binary sensors before the hub's first update
2026-11-04 12:52:49 -06:00
J. Nick Koston
a4407839b0
[systa_bus] Type the deprecated platform id as a string for the language schema
2026-11-04 12:52:49 -06:00
J. Nick Koston
cfe7eec9d0
[motion] Use HUB_PUBLISHER and the derived data publisher name
2026-11-04 12:52:49 -06:00
J. Nick Koston
cfd059e198
[motion] Publish children through a generated hub function
2026-11-04 12:52:49 -06:00
J. Nick Koston
f821f32725
[mk2pvrouter] Follow the HubFunction publisher convention
...
Rename the functions to value and dump publishers declared with HUB_PUBLISHER,
pass the hub's tag to the children's dump helpers, rename the child schema,
and test the hub against a recorder of the last published tag and value.
2026-11-04 12:52:49 -06:00
J. Nick Koston
5fbdb34aa3
[systa_bus] Follow the HubFunction publisher convention
...
Rename the functions to aqua and dump publishers declared with HUB_PUBLISHER,
log the children's dump lines through small C++ helpers with the bus's tag,
move aqua_temperature() into systa_bus.h, and deprecate the ignored platform
id and setup_priority keys instead of declaring an id that is never created.
2026-11-04 12:52:49 -06:00
J. Nick Koston
d1d5f9fd79
[systa_bus] Keep accepting the platform id and setup_priority keys
2026-11-04 12:52:49 -06:00
J. Nick Koston
84fd0ab834
[mk2pvrouter] Publish children through a generated hub function
2026-11-04 12:52:49 -06:00
J. Nick Koston
53edf32bf2
[systa_bus] Publish children through a generated hub function
2026-11-04 12:52:49 -06:00
J. Nick Koston
d6a2345596
[sy6970] Drop the unreachable fallback strings from the bus and charge status tables
2026-11-04 12:52:48 -06:00
J. Nick Koston
be9ee69672
[sy6970] Share the child publishing loop across the three platforms
2026-11-04 12:52:48 -06:00
J. Nick Koston
5702320808
[sy6970] Check the decode of every child in the hub function test
2026-11-04 12:52:48 -06:00
J. Nick Koston
75369a15d8
[tm1638] Follow the HubFunction convention
...
Use HUB_PUBLISHER and the derived setter, and export the KEYS parameter
as a module constant.
2026-11-04 12:52:48 -06:00
J. Nick Koston
5851a9e58d
[tca8418] Follow the HubFunction convention
...
Use HUB_PUBLISHER and the derived setter, and export the KEY and PRESSED
parameters as module constants.
2026-11-04 12:52:48 -06:00
J. Nick Koston
cc1f2388eb
[sy6970] Follow the HubFunction convention and use string tables
...
Use HUB_PUBLISHER and the derived setter, pass the hub constants directly
to the sensor decode with a scale argument, and publish the status text
from PROGMEM string tables.
2026-11-04 12:52:48 -06:00
J. Nick Koston
490ce313af
[tm1638] Publish children through a generated hub function
2026-11-04 12:52:48 -06:00
J. Nick Koston
407e9c5f7c
[tca8418] Publish children through a generated hub function
2026-11-04 12:52:48 -06:00
J. Nick Koston
205e4d0041
[sy6970] Publish children through a generated hub function
2026-11-04 12:52:48 -06:00
J. Nick Koston
8b3a5f8855
Merge remote-tracking branch 'origin/hubfn-migrate-c' into hubfn-migrate-d
...
# Conflicts:
# esphome/components/motion/__init__.py
# esphome/components/motion/motion_component.h
# esphome/core/defines.h
# tests/component_tests/motion/test_hub_function.py
2026-11-04 12:47:12 -06:00
J. Nick Koston
5bd999b9f3
[motion] Tidy the sensor type hints, publisher asserts and define order
2026-11-04 12:43:47 -06:00
J. Nick Koston
21add4c229
[motion] Leave the systa_bus and mk2pvrouter migration to its own PR
...
That migration now comes after the motion PRs in the chain.
2026-11-04 12:43:47 -06:00
J. Nick Koston
c44787922a
[motion] Drop the binary sensor setup priority override
...
The start-up order of the initial false needs no change.
2026-11-04 12:43:47 -06:00
J. Nick Koston
9e1457f669
[motion] Set up binary sensors before the hub's first update
2026-11-04 12:43:47 -06:00
J. Nick Koston
3ec9858efc
[systa_bus] Type the deprecated platform id as a string for the language schema
2026-11-04 12:43:47 -06:00
J. Nick Koston
f56c1dfbf3
[motion] Use HUB_PUBLISHER and the derived data publisher name
2026-11-04 12:43:47 -06:00
J. Nick Koston
630a68d39e
[motion] Publish children through a generated hub function
2026-11-04 12:43:47 -06:00
J. Nick Koston
e1451e0ab9
[mk2pvrouter] Follow the HubFunction publisher convention
...
Rename the functions to value and dump publishers declared with HUB_PUBLISHER,
pass the hub's tag to the children's dump helpers, rename the child schema,
and test the hub against a recorder of the last published tag and value.
2026-11-04 12:43:47 -06:00
J. Nick Koston
ae3fe12d94
[systa_bus] Follow the HubFunction publisher convention
...
Rename the functions to aqua and dump publishers declared with HUB_PUBLISHER,
log the children's dump lines through small C++ helpers with the bus's tag,
move aqua_temperature() into systa_bus.h, and deprecate the ignored platform
id and setup_priority keys instead of declaring an id that is never created.
2026-11-04 12:43:47 -06:00
J. Nick Koston
22cb8fddb3
[systa_bus] Keep accepting the platform id and setup_priority keys
2026-11-04 12:43:47 -06:00
J. Nick Koston
6f237e1f80
[mk2pvrouter] Publish children through a generated hub function
2026-11-04 12:43:47 -06:00
J. Nick Koston
31f80dd4f4
[systa_bus] Publish children through a generated hub function
2026-11-04 12:43:47 -06:00
J. Nick Koston
e5b4a553bb
[sy6970] Drop the unreachable fallback strings from the bus and charge status tables
2026-11-04 12:43:46 -06:00
J. Nick Koston
10b16d9457
[sy6970] Share the child publishing loop across the three platforms
2026-11-04 12:43:46 -06:00
J. Nick Koston
77a61f976e
[sy6970] Check the decode of every child in the hub function test
2026-11-04 12:43:46 -06:00
J. Nick Koston
34eedcd255
[tm1638] Follow the HubFunction convention
...
Use HUB_PUBLISHER and the derived setter, and export the KEYS parameter
as a module constant.
2026-11-04 12:43:46 -06:00
J. Nick Koston
744015d873
[tca8418] Follow the HubFunction convention
...
Use HUB_PUBLISHER and the derived setter, and export the KEY and PRESSED
parameters as module constants.
2026-11-04 12:43:46 -06:00
J. Nick Koston
2772596338
[sy6970] Follow the HubFunction convention and use string tables
...
Use HUB_PUBLISHER and the derived setter, pass the hub constants directly
to the sensor decode with a scale argument, and publish the status text
from PROGMEM string tables.
2026-11-04 12:43:46 -06:00
J. Nick Koston
3dc11980eb
[tm1638] Publish children through a generated hub function
2026-11-04 12:43:46 -06:00
J. Nick Koston
d10c4e5fad
[tca8418] Publish children through a generated hub function
2026-11-04 12:43:46 -06:00
J. Nick Koston
1732e607e7
[sy6970] Publish children through a generated hub function
2026-11-04 12:43:46 -06:00
J. Nick Koston
21a00e55c5
[ai] Say where the hub function define and dump call go, and drop the repeated paragraph
2026-11-04 12:43:44 -06:00
J. Nick Koston
62d90e7be7
[ai] State the general hub function rule and point embedded-memory at it
2026-11-04 12:43:44 -06:00
J. Nick Koston
f922de9ee4
[ai] Follow the derived HubFunction setter in the field decoding example
2026-11-04 12:43:44 -06:00
J. Nick Koston
fd51924790
[ai] Show the field decoding example with cg.HubFunction and inline the single-bit match
2026-11-04 12:43:44 -06:00
J. Nick Koston
bef064a90c
[ai] Show the bq25186 field decoding built from codegen expressions
2026-11-04 12:43:44 -06:00
J. Nick Koston
ad63488c70
[ai] Use add_binary_status and the exact single-bit condition in the field decoding example
2026-11-04 12:43:44 -06:00
J. Nick Koston
d7686206e4
[ai] Show the on-values bitmap and mark the bq25186 helpers as local in the field decoding example
2026-11-04 12:43:44 -06:00
J. Nick Koston
2d925c8060
Prefer generated decoding for fixed register fields in the codegen skill
2026-11-04 12:43:44 -06:00
J. Nick Koston
ed9f3158e4
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
2026-11-04 12:16:11 -06:00
J. Nick Koston
c95c0ab2ae
Merge branch 'hubfn-migrate-a' into hubfn-migrate-c
2026-11-04 12:16:11 -06:00
J. Nick Koston
6614bc82be
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-11-04 12:16:10 -06:00
J. Nick Koston
0ce6a3bbc4
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-11-04 12:15:57 -06:00
J. Nick Koston
a378010458
Merge remote-tracking branch 'origin/dev' into bq25186-status-codegen
...
# Conflicts:
# tests/components/bq25186/__init__.py
# tests/components/bq25186/test_bq25186_status.cpp
2026-11-04 12:15:45 -06:00
J. Nick Koston
149a8a9bbc
Merge hubfn-migrate-c
2026-11-02 09:44:04 -06:00
J. Nick Koston
b089cdff18
Merge hubfn-migrate-a
2026-11-02 09:42:45 -06:00
J. Nick Koston
5f60d9dfc0
Merge skill-generated-field-decoding
2026-11-02 09:41:29 -06:00
J. Nick Koston
d9c0e4ca04
Merge bq25186-status-codegen
2026-11-02 09:40:10 -06:00
J. Nick Koston
c0c5846458
Merge bq25186-status-tests
2026-11-02 09:38:51 -06:00
J. Nick Koston
24792dee10
Merge hub-function-helper
2026-11-02 09:37:11 -06:00
J. Nick Koston
d451a25d12
Merge dev
2026-11-02 09:35:59 -06:00
J. Nick Koston
18134d1c0d
Merge dev
2026-11-02 09:32:52 -06:00
J. Nick Koston
c39f6178aa
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
2026-10-31 22:00:01 -10:00
J. Nick Koston
6b7e990e6a
Merge branch 'hubfn-migrate-a' into hubfn-migrate-c
2026-10-31 22:00:00 -10:00
J. Nick Koston
73b4330d29
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-10-31 21:59:59 -10:00
J. Nick Koston
11ad36866d
Merge branch 'bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 21:59:57 -10:00
J. Nick Koston
be81117dbe
[sy6970] Drop the unreachable fallback strings from the bus and charge status tables
2026-10-31 21:55:29 -10:00
J. Nick Koston
0794ab32bb
[bq25186] Keep each status decode in its platform file and drop the copy-only order test
2026-10-31 21:54:43 -10:00
J. Nick Koston
b81746e98c
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
2026-10-31 21:44:21 -10:00
J. Nick Koston
2d8475f116
Merge branch 'hubfn-migrate-a' into hubfn-migrate-c
2026-10-31 21:44:16 -10:00
J. Nick Koston
4fc8456821
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-10-31 21:44:12 -10:00
J. Nick Koston
2130c86a98
[ai] Say where the hub function define and dump call go, and drop the repeated paragraph
2026-10-31 21:43:57 -10:00
J. Nick Koston
25a6a1c9b5
[motion] Generate the temperature test config once for all five IMUs
2026-10-31 21:39:12 -10:00
J. Nick Koston
0a37700a53
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
...
# Conflicts:
# esphome/core/defines.h
2026-10-31 21:38:52 -10:00
J. Nick Koston
e95049660c
[motion] Tidy the sensor type hints, publisher asserts and define order
2026-10-31 21:38:24 -10:00
J. Nick Koston
72ab0e5e05
Merge branch 'hubfn-migrate-a' into hubfn-migrate-c
2026-10-31 21:37:49 -10:00
J. Nick Koston
28d2730629
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-10-31 21:37:30 -10:00
J. Nick Koston
a91ebfef34
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 21:37:28 -10:00
J. Nick Koston
56308056fb
[bq25186] Trim test comments
2026-10-31 21:37:13 -10:00
J. Nick Koston
4b44c4a60d
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 21:36:57 -10:00
J. Nick Koston
c0788031d4
[bq25186] Drop a comment that restates the test
2026-10-31 21:36:47 -10:00
J. Nick Koston
a5ec8693a4
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 21:36:37 -10:00
J. Nick Koston
59dfb4ce72
[core] Shorten the HubFunction docstring
2026-10-31 21:36:27 -10:00
J. Nick Koston
26f031caf8
[sy6970] Share the child publishing loop across the three platforms
2026-10-31 21:35:36 -10:00
J. Nick Koston
55503020af
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-10-31 21:34:34 -10:00
J. Nick Koston
1a658bfdc1
[ai] State the general hub function rule and point embedded-memory at it
2026-10-31 21:32:57 -10:00
J. Nick Koston
8db46d301b
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 21:32:43 -10:00
J. Nick Koston
c7c40154c6
[bq25186] Use the shared hub function test layout and drop a repeated comment
2026-10-31 21:32:19 -10:00
J. Nick Koston
2bd7cd8aa3
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 21:31:30 -10:00
J. Nick Koston
e97b865653
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 21:31:27 -10:00
J. Nick Koston
93bb8ef97b
[core] Keep all HubFunction state in one dataclass and build parameter names in one place
2026-10-31 21:31:13 -10:00
J. Nick Koston
1e8b6e75c7
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
2026-10-31 21:23:22 -10:00
J. Nick Koston
b593138e26
[motion] Leave the systa_bus and mk2pvrouter migration to its own PR
...
That migration now comes after the motion PRs in the chain.
2026-10-31 21:23:05 -10:00
J. Nick Koston
b195ee3a75
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
2026-10-31 21:20:41 -10:00
J. Nick Koston
9b3b61df27
[motion] Drop the binary sensor setup priority override
...
The start-up order of the initial false needs no change.
2026-10-31 21:19:14 -10:00
J. Nick Koston
3bf646fa01
Merge branch 'hubfn-migrate-c' into hubfn-migrate-d
2026-10-31 21:14:07 -10:00
J. Nick Koston
66861ffd95
[motion] Set up binary sensors before the hub's first update
2026-10-31 21:13:53 -10:00
J. Nick Koston
bed0bc99dd
Merge branch 'hubfn-migrate-b' into hubfn-migrate-c
2026-10-31 21:13:21 -10:00
J. Nick Koston
eac7a18ebd
[systa_bus] Type the deprecated platform id as a string for the language schema
2026-10-31 21:12:33 -10:00
J. Nick Koston
e0eb06f44b
Merge branch 'hubfn-migrate-a' into hubfn-migrate-b
2026-10-31 21:11:44 -10:00
J. Nick Koston
1af65d8281
[sy6970] Check the decode of every child in the hub function test
2026-10-31 21:11:25 -10:00
J. Nick Koston
54560ce224
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-10-31 21:10:47 -10:00
J. Nick Koston
4db30fac45
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 21:10:33 -10:00
J. Nick Koston
e527aa4f2c
[bq25186] Name the status parameter plainly in the C++ test's copy of the generated function
2026-10-31 21:09:20 -10:00
J. Nick Koston
55fead5f9a
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 21:08:58 -10:00
J. Nick Koston
ddb01c6f65
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 21:08:56 -10:00
J. Nick Koston
c4262e0c24
[core] Use plain names in the HUB_PUBLISHER test's copy of a generated function
2026-10-31 21:08:33 -10:00
J. Nick Koston
5946c1b2b0
[motion] Share one temperature publisher across the IMU hubs
...
lis3dh, bmi270, icm20689, qmi8658 and lsm6ds publish temperature through a
generated function on MotionComponent instead of their own callback lists;
the bmi270 magnetometer gets its own hub function.
2026-10-31 20:55:57 -10:00
J. Nick Koston
223e4fc79b
[motion] Use HUB_PUBLISHER and the derived data publisher name
2026-10-31 20:55:32 -10:00
J. Nick Koston
c72f5accad
[motion] Publish children through a generated hub function
2026-10-31 20:55:32 -10:00
J. Nick Koston
0abdd69bc2
[mk2pvrouter] Follow the HubFunction publisher convention
...
Rename the functions to value and dump publishers declared with HUB_PUBLISHER,
pass the hub's tag to the children's dump helpers, rename the child schema,
and test the hub against a recorder of the last published tag and value.
2026-10-31 20:55:12 -10:00
J. Nick Koston
5060185da1
[systa_bus] Follow the HubFunction publisher convention
...
Rename the functions to aqua and dump publishers declared with HUB_PUBLISHER,
log the children's dump lines through small C++ helpers with the bus's tag,
move aqua_temperature() into systa_bus.h, and deprecate the ignored platform
id and setup_priority keys instead of declaring an id that is never created.
2026-10-31 20:55:12 -10:00
J. Nick Koston
fc3a5322f6
[systa_bus] Keep accepting the platform id and setup_priority keys
2026-10-31 20:55:12 -10:00
J. Nick Koston
96f1547f94
[mk2pvrouter] Publish children through a generated hub function
2026-10-31 20:55:11 -10:00
J. Nick Koston
43e2388a5f
[systa_bus] Publish children through a generated hub function
2026-10-31 20:55:11 -10:00
J. Nick Koston
107526e5ff
Merge branch 'skill-generated-field-decoding' into hubfn-migrate-a
2026-10-31 20:55:04 -10:00
J. Nick Koston
ba7fa90c47
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 20:54:47 -10:00
J. Nick Koston
1c54560cc9
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 20:54:45 -10:00
J. Nick Koston
0bb857104e
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 20:54:42 -10:00
J. Nick Koston
560a364f0e
[core] Add HUB_PUBLISHER_RETURNING for bool hub functions and note the access level
2026-10-31 20:49:16 -10:00
J. Nick Koston
dfe29a686b
[tm1638] Follow the HubFunction convention
...
Use HUB_PUBLISHER and the derived setter, and export the KEYS parameter
as a module constant.
2026-10-31 20:45:06 -10:00
J. Nick Koston
8c8ec1e457
[tca8418] Follow the HubFunction convention
...
Use HUB_PUBLISHER and the derived setter, and export the KEY and PRESSED
parameters as module constants.
2026-10-31 20:45:06 -10:00
J. Nick Koston
8f2cac7d15
[sy6970] Follow the HubFunction convention and use string tables
...
Use HUB_PUBLISHER and the derived setter, pass the hub constants directly
to the sensor decode with a scale argument, and publish the status text
from PROGMEM string tables.
2026-10-31 20:45:06 -10:00
J. Nick Koston
906dd482b2
[tm1638] Publish children through a generated hub function
2026-10-31 20:42:07 -10:00
J. Nick Koston
010db6f8d4
[tca8418] Publish children through a generated hub function
2026-10-31 20:42:07 -10:00
J. Nick Koston
53c32c7136
[sy6970] Publish children through a generated hub function
2026-10-31 20:42:07 -10:00
J. Nick Koston
da0dcfc16f
[ai] Follow the derived HubFunction setter in the field decoding example
2026-10-31 20:40:39 -10:00
J. Nick Koston
498b974f4d
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 20:40:33 -10:00
J. Nick Koston
0b0d6b3143
[bq25186] Use HUB_PUBLISHER and the derived HubFunction setter
2026-10-31 20:40:11 -10:00
J. Nick Koston
02348e77b9
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 20:39:32 -10:00
J. Nick Koston
5eb55a80ab
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 20:39:28 -10:00
J. Nick Koston
028cafaa12
[core] Derive the HubFunction setter from its name and add HUB_PUBLISHER
...
HubFunction("status", ...) now emits esphome__<hub>__status_fn and calls
set_status_publisher(), which HUB_PUBLISHER(status, ...) declares in C++.
2026-10-31 20:38:48 -10:00
J. Nick Koston
7ae3d056f4
[ai] Show the field decoding example with cg.HubFunction and inline the single-bit match
2026-10-31 20:22:50 -10:00
J. Nick Koston
fa1f229d9c
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 20:22:31 -10:00
J. Nick Koston
da45ee6afe
[bq25186] Follow the prefixed HubFunction parameter name in the status tests
2026-10-31 20:20:11 -10:00
J. Nick Koston
ea62a1be7b
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 20:19:43 -10:00
J. Nick Koston
9653f46b38
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 20:19:40 -10:00
J. Nick Koston
0c6f6cfe85
[core] Prefix HubFunction parameter and result names so entity ids cannot be hidden
2026-10-31 20:19:24 -10:00
J. Nick Koston
dd4fc435ea
[bq25186] Generate the status function with cg.HubFunction
...
Items now publish in config order; the local collection and FINAL job go.
2026-10-31 20:17:28 -10:00
J. Nick Koston
8f743eb978
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
...
# Conflicts:
# tests/unit_tests/test_cpp_generator.py
2026-10-31 20:06:36 -10:00
J. Nick Koston
c0120a8eb1
Merge branch 'hub-function-helper' into bq25186-status-tests
2026-10-31 20:06:09 -10:00
J. Nick Koston
8b1d10aa70
[core] Guard HubFunction names and bool items, and cover reruns
2026-10-31 20:04:08 -10:00
J. Nick Koston
6eae676622
[core] Add cg.HubFunction to generate one function per hub from child statements
...
Also let cg.static_function take Statement objects in its body and add
MockObjClass.const_ref().
2026-10-31 20:01:14 -10:00
J. Nick Koston
ffae10b153
[ai] Show the bq25186 field decoding built from codegen expressions
2026-10-31 19:46:08 -10:00
J. Nick Koston
66f04d4c77
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 19:45:59 -10:00
J. Nick Koston
5a4ce03a9f
[bq25186] Build the status statements from codegen expressions
...
cg.static_function now also takes Statement objects in its body.
2026-10-31 19:44:13 -10:00
J. Nick Koston
aeac271542
[ai] Use add_binary_status and the exact single-bit condition in the field decoding example
2026-10-31 19:38:30 -10:00
J. Nick Koston
fdc83fd36f
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 19:38:11 -10:00
J. Nick Koston
8026ce24ae
[bq25186] Build the status C++ in add_binary_status and add_text_status
...
The platform files pass their field values; __init__.py owns the generated
statements. The generated code is unchanged.
2026-10-31 19:37:53 -10:00
J. Nick Koston
e3bd6d9a05
[bq25186] Take the single-bit decode shortcut only for one-bit fields
...
Also include text_sensor.h in the status test, which owns text sensors.
2026-10-31 19:28:24 -10:00
J. Nick Koston
dba53f5861
Merge remote-tracking branch 'origin/bq25186-status-codegen' into skill-generated-field-decoding
2026-10-31 19:26:38 -10:00
J. Nick Koston
a91639ed3f
[ai] Show the on-values bitmap and mark the bq25186 helpers as local in the field decoding example
2026-10-31 19:26:37 -10:00
J. Nick Koston
ecc2ebc4f4
[bq25186] Fold the status codegen tests into one config and check the C++ copy against it
...
The generated decode test now covers the field tables, so test_status_fields.py
goes; decode expressions are compiled once.
2026-10-31 19:25:54 -10:00
J. Nick Koston
3489bc4f65
Prefer generated decoding for fixed register fields in the codegen skill
2026-10-31 19:15:24 -10:00
J. Nick Koston
229fcd5370
[bq25186] Check every generated status decode against the datasheet
2026-10-31 19:12:04 -10:00
J. Nick Koston
7be5d58ae6
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
...
# Conflicts:
# tests/components/bq25186/test_bq25186_status.cpp
2026-10-31 19:12:04 -10:00
J. Nick Koston
5876bb209d
[bq25186] Check the status field tables against the datasheet
...
Reserve the expected order vector for clang-tidy.
2026-10-31 19:10:40 -10:00
J. Nick Koston
101285d019
[bq25186] Keep status publisher state in a dataclass and mask the text field in the helper
2026-10-31 19:09:02 -10:00
J. Nick Koston
92e4d26ad7
Merge branch 'bq25186-status-tests' into bq25186-status-codegen
2026-10-31 18:57:51 -10:00
J. Nick Koston
466e73b196
[bq25186] Generate the status entity publishing in code generation
...
The status binary and text sensors become plain entities; one generated
function per hub decodes the registers and publishes them, replacing the
field-description subclasses and the hub's entity lists.
2026-10-31 18:57:51 -10:00
J. Nick Koston
b831057030
[bq25186] Record the publish order without std::to_string
2026-10-31 18:57:40 -10:00
J. Nick Koston
39e3e47f1e
[bq25186] Add tests for the status binary and text sensors
...
Pin the decode of every status field, the text sensor change-only publish
(including the first poll), the binary sensor publish on every poll, and
the publish order.
2026-10-31 18:48:53 -10:00