Commit graph

15 commits

Author SHA1 Message Date
Erik Montnemery
8245ff7473
Log transmitted MQTT messages () 2022-02-04 17:35:32 +01:00
Jan Bouwhuis
dd0193052c
Add MQTT encoding parameter for all subscribed topics ()
* Add encoding parameter for all subscribable topics

* test setup encoding incoming payload

* remove support for device_tracker and tag+tests
2022-01-03 16:08:07 +01:00
Jan Bouwhuis
061ce0c187
Fix mqtt reloading and rework tests ()
* Improve mqtt reloading/tests and fix issues

* Cleanup fixture for reloading test

* isort and black remove replaced test_reloadable
2022-01-03 15:14:50 +01:00
Jan Bouwhuis
d0c4f0fec4
Add mqtt encoding support for publishing ()
* encoding support for mqtt publishing - todo tests

* signature allows None values for qos and retain

* common test for mqtt publishing encoding

* better test with command templates

* more tests

* fix tests alarm control panel+tests light basic

* tests light json and template

* add tests vacuum and fix tests light_template
2022-01-03 09:03:47 +01:00
Jan Bouwhuis
0c4863198e
Add command_template to MQTT number platform () 2021-11-02 18:21:49 +01:00
Erik Montnemery
640a7fee9d
Allow extra keys in MQTT discovery messages ()
* Allow extra keys in MQTT discovery messages

* Remove extra keys
2021-10-25 13:47:06 +02:00
Franck Nijhof
027e167d95
Add support for unit of measurement in MQTT number platform () 2021-10-25 09:44:43 +02:00
Erik Montnemery
7223c59e79
Allow resetting an MQTT number ()
* Allow resetting an MQTT number

* Add abbreviation
2021-10-07 13:54:34 +02:00
Erik Montnemery
71a0e474cc
Filter MQTT number JSON attributes () 2021-06-29 11:16:57 +02:00
Erik Montnemery
e14480599b
Add value_template support to MQTT number () 2021-06-28 10:23:34 +02:00
Erik Montnemery
77de233679
Update MQTT number to treat received payload as UTF-8 ()
* Update MQTT number to treat received payload as UTF-8

* Lint
2021-06-23 15:35:18 +02:00
Shay Levy
6e087039f4
Add min/max/step to MQTT number () 2021-05-21 18:35:27 +03:00
Diogo Gomes
e3c1281616
Add MQTT Number (non optimistic) ()
* non optimistic

* test restored state

* ups

* review

* Ensure the entity is not in optimistic mode

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-01-08 23:43:14 +01:00
Erik Montnemery
93ae65d704
Improve MQTT number test coverage () 2021-01-06 13:27:05 +01:00
Diogo Gomes
f18880686c
Add MQTT Number ()
* Initial Commit

* initial commit

* add discovery and tests

* increase coverage

* address review

* catchup with reality
2021-01-06 08:27:46 +01:00