Closed yinonco closed 3 years ago
Please, check in unused entities in home assistant. May be it is under another name since you have used first the Native integration so19 0
and then the mqtt discovery so19 1
Also, please update Tasmota to latest 9.1.0.2 from the dev branch ( http://ota.tasmota.com/tasmota/tasmota.bin.gz )
Remember that when using so19 0
your Tasmota device will pop up under Integrations in HomeAssistant.
Ive updated to 9102 and it is still the same.
I didnt try with SO19 0
(native HA integration) yet. I actually didnt know this option, I will give it a try and update
Please, check in unused entities in home assistant. May be it is under another name
MQTT discovery needs switchtopic to be set in order to have the switches discovered and the switches will respond to a specific topic. The official integration uses SO114 and the switches will respond to the default topic. I strongly suggest to remove the device from MQTT discovery and use directly on the new Integration.
@yinonco
Hi, any news on this? Were you able to solve it?
Please, when you have time, tell us if you were able to solve your problem. Thanks.
ok so on this device I was able to get it to work with SO19 0 but, I have another device - Shelly 2.5 which I use for roller shutter and if I turn Option 19 off HA doesnt recognize it as a cover (currently Option 19 is on and HA does see it as a cover)
Please don't mix things. This issue was about switches, not covers. Shutters are already supported for the official integration but you need to wait Home Assistant 0.119 to have them working.
ok Thanks 👍
PROBLEM DESCRIPTION
A clear and concise description of what the problem is. I have flashed tasmota on a shelly 1 device. I want to detach the relay from the switch and have automations based on the switch in Home Assistant. I did
SO114 1
and I can see the status sent on MQTT:And when I turn on option 19 for HA discovery I get:
I Had to define
SwitchTopic
in order for it to send the first two lines (In other device where I use buttons I didn't need to do it) so I defined it asswitch
so it wont control the relayThe problem is that now - after I turned option 19 on I don't get mqtt messages at all for the switch state change - not those I got before on
room/stat/main_switch/RESULT
and not those suppose to be sent for HA onroom/stat/main_switch/SWITCH1T
In other device where I have buttons instead of switches it worked as I wanted.
Thanks :)
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Rules output here:
Not using rules
STATUS 0 output here: 21:18:18 CMD: Status 0 21:18:18 MQT: room/stat/main_switch/STATUS = {"Status":{"Module":46,"DeviceName":"Room Main Switch","FriendlyName":["Tasmota"],"Topic":"main_switch","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"switch","SwitchMode":[8,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}} 21:18:18 MQT: room/stat/main_switch/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:15:57","StartupUTC":"2020-11-25T20:02:21","Sleep":50,"CfgHolder":4617,"BootCount":19,"BCResetTime":"2020-11-25T18:27:37","SaveCount":105,"SaveAddress":"F4000"}} 21:18:18 MQT: room/stat/main_switch/STATUS2 = {"StatusFWR":{"Version":"9.1.0(tasmota)","BuildDateTime":"2020-11-07T11:57:45","Boot":31,"Core":"2_7_4_5","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"436/699"}} 21:18:18 MQT: room/stat/main_switch/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Cohen_HB",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["000A8009","2805C8000100060000005A00000000000000","00800200","00006000","00000001"]}} 21:18:18 MQT: room/stat/main_switch/STATUS4 = {"StatusMEM":{"ProgramSize":600,"Free":400,"Heap":23,"ProgramFlashSize":2048,"FlashSize":2048,"FlashChipId":"1540EF","FlashFrequency":40,"FlashMode":3,"Features":["00000809","8FDAE797","04368001","000000CF","010013C0","C000F981","00004004","00000000"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37","Sensors":"1,2,3,4,5,6"}} 21:18:18 MQT: room/stat/main_switch/STATUS5 = {"StatusNET":{"Hostname":"main_switch-3370","IPAddress":"192.168.1.58","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer":"8.8.8.8","Mac":"8C:AA:B5:C5:0D:2A","Webserver":2,"WifiConfig":4,"WifiPower":17.0}} 21:18:18 MQT: room/stat/mainswitch/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.112","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_C50D2A","MqttUser":"smarthome","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}} 21:18:18 MQT: room/stat/main_switch/STATUS7 = {"StatusTIM":{"UTC":"2020-11-25T20:18:18","Local":"2020-11-25T21:18:18","StartDST":"2020-03-29T02:00:00","EndDST":"2020-10-25T03:00:00","Timezone":"+01:00","Sunrise":"08:14","Sunset":"16:59"}} 21:18:18 MQT: room/stat/main_switch/STATUS10 = {"StatusSNS":{"Time":"2020-11-25T21:18:18","Switch1":"ON"}} 21:18:18 MQT: room/stat/main_switch/STATUS11 = {"StatusSTS":{"Time":"2020-11-25T21:18:18","Uptime":"0T00:15:57","UptimeSec":957,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"Cohen_HB","BSSId":"98:1E:19:7F:3C:1E","Channel":6,"RSSI":100,"Signal":-43,"LinkCount":1,"Downtime":"0T00:00:05"}}}
Console output here: Provided above in the description