This was tested and should allow both sensors to be autodiscovered and group them under a single "Tilt (Color)" home assistant device.
In addition to the discovery topic payloads, revised size of payload StaticJsonDoc after checking size of temperature autodiscovery serialized payload in ArduinoJson Assistant where the 512 was recommended.
This was tested and should allow both sensors to be autodiscovered and group them under a single "Tilt (Color)" home assistant device.
In addition to the discovery topic payloads, revised size of payload StaticJsonDoc after checking size of temperature autodiscovery serialized payload in ArduinoJson Assistant where the 512 was recommended.