Sonoff RF Bridge with Tasmota - Retain State?

Hey All,

I’m using a Sonoff RF Bridge with Tasmota. I’m using it currently with a few GS-WDS07 and planning to expand to about 30 contact sensors. I have everything created and working with manually made mqtt binary sensors but they are losing their state after i refresh mqtt entries or I do a server reboot.

I know I could do a publish2 with rules but I believe there are only 3 rule buffers and I will eventually run out of space for all the 433 devices I want to add over time.

I’ve currently got the following setup… is there any way for me to ensure that when messages get published from the bridge they keep retain state or maybe something i could do within HA to keep the current state to persist through reboots?

- platform: mqtt
  unique_id: "office_door_GS_WDS07"
  name: "Office Door"
  state_topic: "tele/RF_Bridge1/RESULT"
  value_template: '{{value_json.RfReceived.Data}}'
  payload_on: "A3E60A"
  payload_off: "A3E60E"
  device_class: Door
  qos: 1

Use strategy 2