Home Assistant Integration

Lynn
Posts: 18
Joined: Sat Feb 11, 2023 11:19 pm

Home Assistant Integration

Post by Lynn »

DO NOT use Matter for Home Assistant Integration
1. Set Return MQTT response as COMMAND:
On the TASMOTA Web GUI -> Consoles

Code: Select all

Setoption4 1
2. Set a proper name for your device:
On the TASMOTA Web GUI -> Configuration -> Configure Other
3. Set MQTT Settings Host, User, Password and Topic. (Don't need to change the fulltopic or client)
On the TASMOTA Web GUI -> Configuration -> Configure MQTT.
Image Image
4. add following code in configuration.yaml
**Note**: Please replace the Topic "frontDoorShutter" according to your actual Topic name.

Code: Select all

mqtt:
  cover:
    - name: "yamlShutter"
      unique_id: "yamlShutterId"
      qos: 1
      command_topic: "cmnd/frontDoorShutter/tuyasend4"
      payload_open: "1,0"
      payload_close: "1,2"
      payload_stop: "1,1"
      set_position_topic: "cmnd/frontDoorShutter/shutterposition"
      set_position_template: "{{value}}"
      position_topic: "stat/frontDoorShutter/RESULT"
      position_template: "{{ value_json.Shutter1.Position }}"
      availability_topic: "tele/frontDoorShutter/LWT"
      payload_available: "Online"
      payload_not_available: "Offline"
Image
5. Now you can add the device by entity
scarver
Posts: 14
Joined: Thu Mar 06, 2025 3:06 pm

Re: Home Assistant Integration

Post by scarver »

DO NOT use Matter for Home Assistant Integration
???

I don't understand, how I can integrate the Tasmota switches in the Home Assistant?
Why the shutter schow the Matter QR-Code, and the we shouldn't use it???

Can somebody explain, what is to do, for integration the currysmarter Tasmota switches for shutter in a sytem like Home Assistant?

I need help to adjust the timmer settings in the WebUI?
I can run the shutter by the manual switsches at the switches.
But in the WebUI the timer open the shutter and toogle works also sometimes.
But close or Off dosen't work. Why ???

Who can help?

Scarver
scarver
Posts: 14
Joined: Thu Mar 06, 2025 3:06 pm

Re: Home Assistant Integration

Post by scarver »

Keine Antworten?

Ist Euch eigentlich klar? Dass man nicht viel aus diesem Forum entnehmen kann?

No answers?

Do you actually realise that? That you can't get much from this forum?
Lynn
Posts: 18
Joined: Sat Feb 11, 2023 11:19 pm

Re: Home Assistant Integration

Post by Lynn »

You don't need to use Matter QR code for connection with Home Assistant.
MQTT is recommended for Home Assistant integration. And this post already list the steps to integrate into Home Assistant.
scarver wrote: Thu Mar 06, 2025 3:23 pm DO NOT use Matter for Home Assistant Integration
???

I don't understand, how I can integrate the Tasmota switches in the Home Assistant?
Why the shutter schow the Matter QR-Code, and the we shouldn't use it???

Can somebody explain, what is to do, for integration the currysmarter Tasmota switches for shutter in a sytem like Home Assistant?

I need help to adjust the timmer settings in the WebUI?
I can run the shutter by the manual switsches at the switches.
But in the WebUI the timer open the shutter and toogle works also sometimes.
But close or Off dosen't work. Why ???

Who can help?

Scarver
scarver
Posts: 14
Joined: Thu Mar 06, 2025 3:06 pm

Re: Home Assistant Integration

Post by scarver »

Where can I find more information?

So far I've only used the WEBUI Tasmota and I didn't want to set up a Home Assistant, although I still have a Raspberry lying around.

I can't manage to use the timers as usual in WEBUI!
I have a switch from NOUS, there is a switch 1 for "Open" and a switch 2 for "Close".
There it is easy to set the timers for switch 1 and 2 in WEBUI and the opening and closing works perfectly after the timers.

How does this work with the 14 CurrySmarter switches with TASMOTA?
I have tried many settings and have not achieved my goal!

There is only one output 1 in the timer, which I can assign with "Off / On / Toggle or Rule".
But now it happens, no matter what I set, with one timer the switch opens the roller shutter for example, with the next switching point the timer closes the roller shutter again in the time sequence. Even this does not work reliably!
The problem also is, If you set two timers per day, one for "open" and one for "close", the switch will only make the usual function out of it, in addition to what was there before.
So if it works to open the roller shutter with a timer and another one should take over the closing in the evening, then it is enough that someone operates the roller shutter manually and then the roller shutter opens or closes with the next timer! That's bad and unreliable!

Example: My wife stops the kitchen shutters in the morning when they open in the morning at a point as far as she wants the shutters open.
Percentage setting of the shutters ???
If the closing timer is then to work in the evening, the shutters may open or close. Or they work in opposite directions, one opens the other closes ???

Is it possible to visualise the RULES with which the switches are equipped?

I don't know how to evaluate the Rule function in the timers because I don't know how this is supposed to work!

Is it possible to automate the switches so that they open and close according to a schedule?

All other questions later!
PeterD
Posts: 2
Joined: Mon Apr 21, 2025 6:25 pm

Re: Home Assistant Integration

Post by PeterD »

Hi,
It worked fine for me WITHOUT the last three lines for a availability!!
Jadavin
Posts: 2
Joined: Fri May 09, 2025 8:52 am

Re: Home Assistant Integration

Post by Jadavin »

I bought 7 devices and 3 of them pushing the json containing the current position with message stat/%topic%/RESULT while the other 4 do the same by using message ]stat/%topic%/SHUTTER. I can adapt this in the entity definition accordingly, however in the first case there are many other json structures deliver under RESULT as well. This floods the MQTT log with error messages.

Example:

Code: Select all

RESULT = {"Var4":"100"}
and then

Code: Select all

RESULT = {"If":"Done"}
and then

Code: Select all

RESULT = {"Shutter1":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
The first two messages lead into the following errors:

Code: Select all

2025-05-08 23:42:08.375 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'Shutter1' when rendering '{{ value_json.Shutter1.Position }}'
2025-05-08 23:42:08.375 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'Shutter1' (value: {"If":"Done"}, template: {{ value_json.Shutter1.Position }})
2025-05-08 23:42:08.375 WARNING (MainThread) [homeassistant.components.mqtt.cover] Template (position_template) returned JSON without position attribute
How can I change the MQTT messages for the 3 devices to report the shutter position only under topic stat/%topic%/SHUTTER so I don't get a "no attribute" error in Home Assistant?
Jadavin
Posts: 2
Joined: Fri May 09, 2025 8:52 am

Re: Home Assistant Integration

Post by Jadavin »

Okay, I found the answer. Obviously I forgot the set

Code: Select all

SetOption4 1
scarver
Posts: 14
Joined: Thu Mar 06, 2025 3:06 pm

Re: Home Assistant Integration

Post by scarver »

Hello together,
I love tasmota, but I don't have enough knowledge to integrate my shutter switches smartercurry tasmota into Homeassistant.
I implemented Homeassistant in a Raspberrry 4.
Start the Homeassistant all is fine.
Homeassistant find by itself the tv and other items in the network.

Now I tried your advise to bring the tasmota switches into Homeassistant using mqtt.
I couldn't find the right answer or parameter for this connection!
???
IT DOESN'T LOOK LIKE THE EXAMPLE

I IMPLEMENTED ADDON FOR FILE MANAGEMENT OR THE VSCODE?

I have the feeling I go away from the right way to the goal.

Is here somebody, who can helps me?

Configuration.yaml configured!?
My pictures are to large for attachment :roll:
scarver
Posts: 14
Joined: Thu Mar 06, 2025 3:06 pm

Re: Home Assistant Integration

Post by scarver »

Don't work
Frustrated
Post Reply