Tasmota HA Integration

Wonder if anyone has experienced the following and knows how to correct.

I installed the Tasmota firmware on a Sonoff 4Ch Pro.
I used the setoption19 1 from the consol to auto register the channels with HA, having applied names to each of the channels.
All worked and the entities appeared in HA.

Later I decided that the channel names were not appropriate (stupid I know, but…) so having tried re-naming them in Sonoff and seeing that not picked up in HA (mutiple re-boots etc.) I decided to start from scratch, deleted the entities and the integration and MQTT and started again (including re-setting the Sonoff).

The 4 channels however will not re-appear in HA. I tried the setoption19 1 again, I get the following response at the sonoff end;

13:14:45 MQT: stat/tasmota_C497E3/RESULT = {"SetOption19":"ON"}
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_4_TOGGLE/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_4_HOLD/config =  (retained)
13:14:45 MQT: homeassistant/binary_sensor/C497E3_SW_4/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_5_TOGGLE/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_5_HOLD/config =  (retained)
13:14:45 MQT: homeassistant/binary_sensor/C497E3_SW_5/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_6_TOGGLE/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_6_HOLD/config =  (retained)
13:14:45 MQT: homeassistant/binary_sensor/C497E3_SW_6/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_7_TOGGLE/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_7_HOLD/config =  (retained)
13:14:45 MQT: homeassistant/binary_sensor/C497E3_SW_7/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_8_TOGGLE/config =  (retained)
13:14:45 MQT: homeassistant/device_automation/C497E3_SW_8_HOLD/config =  (retained)
13:14:45 MQT: homeassistant/binary_sensor/C497E3_SW_8/config =  (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_1/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_1/config = {"name":"Tasmota_Garden_1","stat_t":"tele/tasmota_C497E3/STATE","avty_t":"tele/tasmota_C497E3/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"cmnd/tasmota_C497E3/POWER1","val_tpl":"{{value_json.POWER1}}","pl_off":"OFF","pl_on":"ON","uniq_id":"C497E3_RL_1","dev":{"ids":["C497E3"]}} (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_2/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_2/config = {"name":"Tasmota_Garden_2","stat_t":"tele/tasmota_C497E3/STATE","avty_t":"tele/tasmota_C497E3/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"cmnd/tasmota_C497E3/POWER2","val_tpl":"{{value_json.POWER2}}","pl_off":"OFF","pl_on":"ON","uniq_id":"C497E3_RL_2","dev":{"ids":["C497E3"]}} (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_3/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_3/config = {"name":"Tasmota_Garden_3","stat_t":"tele/tasmota_C497E3/STATE","avty_t":"tele/tasmota_C497E3/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"cmnd/tasmota_C497E3/POWER3","val_tpl":"{{value_json.POWER3}}","pl_off":"OFF","pl_on":"ON","uniq_id":"C497E3_RL_3","dev":{"ids":["C497E3"]}} (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_4/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_4/config = {"name":"Tasmota_Garden_4","stat_t":"tele/tasmota_C497E3/STATE","avty_t":"tele/tasmota_C497E3/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"cmnd/tasmota_C497E3/POWER4","val_tpl":"{{value_json.POWER4}}","pl_off":"OFF","pl_on":"ON","uniq_id":"C497E3_RL_4","dev":{"ids":["C497E3"]}} (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_5/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_5/config =  (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_6/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_6/config =  (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_7/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_7/config =  (retained)
13:14:45 MQT: homeassistant/light/C497E3_LI_8/config =  (retained)
13:14:45 MQT: homeassistant/switch/C497E3_RL_8/config =  (retained)
13:14:45 MQT: homeassistant/sensor/C497E3_status/config = {"name":"Sonoff 4CH Pro status","stat_t":"tele/tasmota_C497E3/HASS_STATE","avty_t":"tele/tasmota_C497E3/LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attr_t":"tele/tasmota_C497E3/HASS_STATE","unit_of_meas":"%","val_tpl":"{{value_json['RSSI']}}","ic":"mdi:information-outline","uniq_id":"C497E3_status","dev":{"ids":["C497E3"],"name":"Sonoff 4CH Pro","mdl":"Sonoff 4CH Pro","sw":"8.3.0(tasmota)","mf":"Tasmota"}} (retained)

Is there a way to force this or am I doing something obviously wrong? Appreciate being pointed in the right direction.

In the tasmota console, try

SetOption19 0
SetOption19 1

Thanks, should have said that I did that (after I had deleted the entities from HA). Has had no impact.

It is a long shot, but

Did you delete the device too ? Maybe HA remembers you deleted the entities of the device, and does not restore them because the new auto-discovery messages reference the same device.

You can’t change the device id in Tasmota

"dev":{"ids":["C497E3"],"name":"Sonoff 4CH Pro","mdl":"Sonoff 4CH Pro","sw":"8.3.0(tasmota)","mf":"Tasmota"}} 

As that is derived from it’s mac address.

Thanks. From what I can see, because I deleted the entities, integration and MQTT I can’t see any residual device as such. I’ve started again, deleting everything (including MQTT, associated user, Integration etc). I’ve rebooted several times, including at the server level, and intend to leave for 24 hours, before trying to re-create again in the hope that all necessary element have been flushed.

Ok, so I think as with all good comedy, the answer here is timing!

I deleted everything like I said in the earlier post, including the MQTT add on, but also the integration and I think that is the step that I must have missed before. Once all was deleted and the system re-booted, I left fro 24 hours and then re-added, first the user, then the add on, then re-initialised the integration and finally get the device to request integration and bobs-your-uncle, it works as I hoped and with the right device names, which because it is for an irregation system is worth the effort to avoid confusion.