Commit Graph

112 Commits

Author SHA1 Message Date
pswid
971df73f13 added "availability" section in HA Discovery
This will allow to not remove discovery topics during each ems-esp restart (MQTT init), so it can solve issue #910.

After applying this fix (and removing from the code commands that delete discovery topics) HA no longer reports errors/warnings in the log. I'm testing if for over a week.
Now it is enough to delete discovery topics only when it is really needed (e.g. the entity has been removed by customization, discovery prefix has been changed or the HA option has been disabled in the configuration).
2023-02-22 13:16:05 +01:00
MichaelDvP
ce0ee49ebf add step to numeric command-values in HA discovery 2022-12-18 16:22:18 +01:00
proddy
783ea7901c support 3 types of MQTT discovery entity id 2022-12-17 19:20:31 +01:00
Proddy
ba90ebda4c merge multiple_instances with entity_format 2022-12-15 21:51:11 +01:00
Proddy
ccbb56d403 add v3.4 entity id flag to MQTT settings 2022-12-14 22:07:42 +01:00
MichaelDvP
9665f4136a Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev 2022-12-07 07:41:25 +01:00
proddy
1af1a1863a #759 add option to enable multiple instances to keep backward compatibllity with v3.4 2022-12-05 21:33:10 +01:00
MichaelDvP
9e23710c6d add heartbeat interval to mqtt settings 2022-12-05 19:27:56 +01:00
Proddy
ba1813c767 removed en_name 2022-11-30 21:21:03 +01:00
MichaelDvP
f16aaf7874 ignore mqtt echos if publish_single2command is set. 2022-10-17 10:14:06 +02:00
Proddy
e37bbe420c manual merge of PR 660 - https://github.com/emsesp/EMS-ESP32/pull/660/ 2022-10-04 21:01:23 +02:00
Proddy
4c70da28e6 better fix for ha climate Optimize flash with ESP32 #646 2022-10-01 16:03:04 +02:00
proddy
777c9db0f6 remove flash 2022-09-28 15:47:27 +02:00
MichaelDvP
022b667858 use old HA object_id, #636, HA (un)subscribes with wildcard 2022-09-24 12:00:41 +02:00
MichaelDvP
f1bb183017 ha config to basename, analog/dallas allow single/nested with ha 2022-09-23 21:54:13 +02:00
proddy
9ae81779ff Change name of entity within WebUI #612 2022-09-09 12:35:21 +02:00
Proddy
1a4ce643fc Multi-language/I18n support #22 2022-08-24 21:50:19 +02:00
proddy
d09e2237ee sonar recommendations 2022-03-05 16:21:00 +01:00
proddy
c1edbbf047 sonar fixes 2022-03-05 14:25:35 +01:00
proddy
f206ce7114 auto formatting 2022-02-26 18:12:42 +01:00
MichaelDvP
24216d7b4f move HA climate to mqtt 2022-02-23 10:29:56 +01:00
proddy
35fec3150b remove obsolete create_device_config and icons 2022-02-20 13:39:36 +01:00
proddy
d8f32d6ade hard code 128 as topic length to prevent compiler warnings 2022-02-17 10:46:02 +01:00
MichaelDvP
7f5e0f7244 Mqtt: remove all HA if not active, timeout QoS, option single2cmd 2022-02-16 17:59:53 +01:00
proddy
d00ac1fa86 formatting 2022-02-12 15:04:37 +01:00
proddy
77e1898512 Merge remote-tracking branch 'origin/v3.4' into dev 2022-01-23 17:56:52 +01:00
proddy
27712badb6 allow empty payloads, refactor to also delete a HA topic 2021-11-15 14:26:30 +01:00
proddy
e6a44c9c82 be able to set mqtt base 2021-11-02 10:41:39 +01:00
proddy
01bace4048 Refactor MQTT subscriptions #173 2021-11-01 23:31:30 +01:00
proddy
c387f65b4a some minor refactor 2021-10-21 22:56:56 +02:00
proddy
7f3ff434ea add test for Dan "ems-esp/boiler/wwcircpump with payload off" 2021-10-19 18:36:35 +02:00
Proddy
50befd8991 add HA device_class 2021-10-12 12:58:29 +02:00
proddy
2c337f1d03 fixed #129 2021-09-28 16:15:47 +02:00
proddy
4d88c6a90b add comments about nesting 2021-09-21 18:03:43 +02:00
proddy
e01bfe1bdf rename duplicate function publish_mqtt_ha_sensor 2021-09-19 21:29:03 +02:00
proddy
2edf2a4231 disable mqtt function 2021-08-07 21:46:38 +02:00
Proddy
bfd20e559e minor changes, make cppcheck happy 2021-08-03 13:23:33 +02:00
proddy
77f6a18075 commands take a set of flags, like NEED_ADMIN or HIDDEN 2021-07-20 21:45:29 +02:00
MichaelDvP
1f793c49ae Move dallas/bool/enum formats to Settings #76 2021-07-16 10:16:32 +02:00
MichaelDvP
5cccfacbc4 show mqtt-count and sensor-reads in info 2021-05-10 15:28:53 +02:00
proddy
7d0ed2246a auto formatting 2021-05-02 08:32:52 +02:00
proddy
7fa93a8de0 MQTT Formatting payload (nested vs single) is a pull-down option 2021-04-04 09:33:04 +02:00
proddy
1938c93faf rename subscribes to subscribe_format 2021-03-28 16:53:01 +02:00
MichaelDvP
03e43ba839 add mqtt subscribe settings, thermostat switchtime, boiler heatingsources 2021-03-22 17:17:56 +01:00
proddy
7885302636 update GH repo 2021-03-18 20:54:12 +01:00
proddy
1ca905d71a optimize tags for mqtt nesting - #738 2021-03-11 21:56:45 +01:00
proddy
6c485e6f78 fix for non-nested thermostat #738 2021-03-10 21:04:17 +01:00
proddy
438c2ba223 nested mqtt mode - (ESP32) Bring back MQTT single topics for Thermostat (and possible others) #738 2021-03-09 23:44:48 +01:00
MichaelDvP
300fff1909 add Mqtt-base on publish, do not store fulltopic in each message 2021-03-04 16:10:34 +01:00
proddy
5c45ad911f increase mqtt buffer from 100 to 200. timeout also reduced to 100ms 2021-02-27 21:49:45 +01:00