Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleBlinds "odd message..." #66

Closed
fraho67 opened this issue Apr 4, 2020 · 81 comments
Closed

SimpleBlinds "odd message..." #66

fraho67 opened this issue Apr 4, 2020 · 81 comments
Assignees

Comments

@fraho67
Copy link

fraho67 commented Apr 4, 2020

Hi,

I saw that within the old repo there was an issue with simple blinds that are not responding giving an "odd message...." output in the Homebridge Terminal. I'm having this issue too. I can see the three blinds in Homekit with status closed, can tap on them getting an "opening"-message but nothing happens. Are you still at it fixing that?

@iRayanKhan
Copy link
Owner

Yup I just had some unexpected delays, can you provide your devices schema to make it where I can see if it's the same as the others?

@fraho67
Copy link
Author

fraho67 commented Apr 4, 2020

Currently I've installed the plugin called "Homebridge Tuya". Which command then is the right one for getting the schema?

@fraho67
Copy link
Author

fraho67 commented Apr 4, 2020

I wasn't doing anything about these blinds for a couple of months, so I have forgotten those steps to obtain the device schema. I've noticed that the old process doesn't work no more but I already was going through many processes with @AMoo-Miki here AMoo-Miki/homebridge-tuya-lan#84
With the current plugin my Tuya Smart plug is working (which it didn't with the old plugin), that's why I'm hoping that the blinds will do it as well in the end.

@AlbertoAIG
Copy link

I have the same issue and Home App show "Without answer" bought blinds. I have get schema recently with Ucomen Home.
Thanks

@iRayanKhan
Copy link
Owner

If you can provide the schema I'd appreciate it.

@AlbertoAIG
Copy link

schema: '[{"mode":"rw","code":"switch_control","name":"\u5f00\u5173\u63a7\u5236","property":{"range":["on","stop","off"],"type":"enum"},"id":1,"type":"obj","desc":""},{"mode":"rw","code":"tr_timecon","name":"\u884c\u7a0b\u65f6\u95f4\u914d\u7f6e","property":{"unit":"s","min":10,"max":120,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj","desc":""},{"mode":"rw","code":"BlackLight","name":"\u80cc\u5149\u5f00\u5173","property":{"type":"bool"},"id":101,"type":"obj","desc":"\u80cc\u5149\u53ef\u63a7"}]',

Thanks you

@hollomeyflorian
Copy link

Hey!
I think I have a similar problem.
This is my issue:
AMoo-Miki/homebridge-tuya-lan#167

When I try “homebridge-tuya” with type “SimpleBlinds”: same problem as before

And when I try ”homebridge-tuya” with type “SimpleBlinds2”: I get the message that I haven’t defined a valid type

@iRayanKhan
Copy link
Owner

So SimpleBlinds2 exists in the schema and documentation, but I am still testing it. I nailed the final bullet, and I can fully guarantee within the new few hours a new beta will be published to add SimpleBlinds2 Support.

I really appreciate everyones patience with this plugin, my schedules been wild with this whole virus thing, I hope everyone stays safe too.

@hollomeyflorian
Copy link

THANK YOU for your work!!! :-)
And stay safe!!!

@iRayanKhan iRayanKhan mentioned this issue Apr 7, 2020
Closed
@iRayanKhan iRayanKhan self-assigned this Apr 8, 2020
@iRayanKhan iRayanKhan pinned this issue Apr 8, 2020
@iRayanKhan
Copy link
Owner

Try this:

sudo npm i -g homebridge-tuya@rc1

@AlbertoAIG
Copy link

Hi, I tried but show version not found.

Thanks

@iRayanKhan
Copy link
Owner

Replace @rc1 with @1.0.1

@AlbertoAIG
Copy link

Thank you.
Now blinds show home app but if I try open or close nothing happen, any idea?

Thanks you again!
Regards

@fraho67
Copy link
Author

fraho67 commented Apr 8, 2020

Hi,

as I am not at home currently I did not install the rc-Version so far. With the regular version I can also already see the blinds within the home app but nothing happens when tapping on the icons - except that it says "opening". @AlbertoAIG Are you also getting "odd message....." within the homebridge terminal for your blinds?

@hollomeyflorian
Copy link

hollomeyflorian commented Apr 8, 2020

Same problem. Have tested it with “SimpleBlinds2”. But when I try to open or close, nothing happens.

@iRayanKhan
Copy link
Owner

Can you please remove your cached accessories, and if possible persist? Deleting persist means you will have to re-add your homebridge devices and I know that isn't suitable for everyone so it's a last resort.

@iRayanKhan
Copy link
Owner

Also make sure you are on Rc1 or @1.0.1

@AlbertoAIG
Copy link

Hi, I have 1.0.1 and I reset rasberryPi (I relieve this clear accessory cache) but they is not working, every show good Home app, opening o closing message work but blinds don't.

What can I do?

Thanks you,
Regards

@iRayanKhan
Copy link
Owner

Restarting the Pi doesn’t remove accessory cache. Can you provide logs when you try to open/close your blinds?

@AlbertoAIG
Copy link

Hi,

How can I remove accessory cache?

Thanks
Regards

@iRayanKhan
Copy link
Owner

Go into your home bridge directory, make sure home bridge is stopped, then in the home bridge directory type
sudo rm -rf accessories/

@fraho67
Copy link
Author

fraho67 commented Apr 10, 2020

I've installed 1.0.1 and deleted accessories but am still getting "odd message......" for the blinds when leaving it as "simpleblinds". When changing it to "simpleblinds2" I am getting "Discovered a device that has not been configured yet....." and then in a loop [TuyaDiscovery] UDP from 192.168.0.113:6667 0x000055aa...0x0000aa55"

@hollomeyflorian
Copy link

hollomeyflorian commented Apr 13, 2020

Maybe dpAction is wrong.

With this setting, I think opening (“2“: “1“) and stopping (“Blinds saw change to 3“) work. But closing (“2“: “2“) doesn‘t work. I mean the curtain opens. But it doesn‘t close.

FAFA90AC-37F8-492A-9DF9-A016B6F005D7
7EB8813F-26DE-414A-B26F-C66DD609AF0A
5D2F970E-94D0-4AF6-9581-B738ECE56773

This was referenced Apr 13, 2020
@iRayanKhan
Copy link
Owner

#75 seems to have pointed out why it isn't working. Creating some variation may work, will have to see depending on the blinds.

@hollomeyflorian
Copy link

@fraho67 Wouldn‘t it be possible for you to define your switch as multi-outlet for example (I have another switch with only one button which I have defined as outlet) (or maybe define it as switch if this is possible) then you assign a function to every button in the Tuya App and therefore, you can control your switch and hence, your curtain through HomeKit?
Then, you would have the possibility to press close, open and stop. But you wouldn’t have the percentage information. But the percentage information confuses anyway because the blinds in the HomeKit app moves up and down and the curtain moves left and right. Hence, I think the percentage is confusing anyway and not sooo useful.

According to ESP, what’s with the warranty of the device if you do this?? One time, I flashed my motherboard of my computer in an not-official way. Then it was damaged and my money was gone. I would never do something like that if you don‘t know exactly what happens when you are doing this.

Have tested it with my one button switch. That works really fast. 😳😄☺️ Don‘t know if this would also work with a 3-button curtain switch.

@fraho67
Copy link
Author

fraho67 commented Apr 14, 2020

So I tried to be an outlaw too 😆 by defining one of my blindswitches as "multioutlet" and then "outlet" and then as "GarageDoor" but neither of them is working......odd message 😒 Thanks anyway for your efforts!

@hollomeyflorian
Copy link

I have a switch similar to this https://www.amazon.de/BSEED-Smart-WiFi-Berührungssensorschalter-Neutral-Feed-erforderlich-Kompatibel-Panel-Wandlichtschaltern/dp/B07PWB4R4T/ref=mp_s_a_1_3?dchild=1&keywords=bseed+lichtschalter+wifi&qid=1586894390&sprefix=bseed+lichtschalter&sr=8-3

With my setting described above, if you push the button, the curtain closes immediately. Again a push and it opens! You can push the switch physically or through HomeKit App. If you use the HomeKit App, the Switch changes the status as if you would have pushed it physically.
I have configured the switch as outlet.

If we don‘t find a solution to the above problem (and I’m not very optimistic anymore), I am almost sure that I will buy a second switch for the curtain-purpose.

@philmue1988
Copy link

so i bought 3 different tuya switchs on Amazon and tried all 3 and it´s still not working ;/ When i change it from "SimpleBlinds" to "Outlet" e.g. than its possible to control

@philmue1988
Copy link

also as "garagedoor" its working

@AlbertoAIG
Copy link

I have got the data from the accessories supposedly fine, but it doesn't work for me anyway. I just tried garage door and nothing. What can be? The switch or the data?

Thanks

@philmue1988
Copy link

philmue1988 commented Apr 17, 2020

when i press the controlbuttons manually ( when definied as "SimpleBlinds") as get these messages :
Apr 17 15:13:25 raspberrypi homebridge[23357]: [TuyaAccessory] Blinds saw change to true
Apr 17 15:13:26 raspberrypi homebridge[23357]: [TuyaAccessory] Heard back from My Simple Blinds with command 8
Apr 17 15:13:26 raspberrypi homebridge[23357]: [TuyaAccessory] Blinds saw change to undefined
Apr 17 15:13:26 raspberrypi homebridge[23357]: [TuyaAccessory] Heard back from My Simple Blinds with command 8
Apr 17 15:13:26 raspberrypi homebridge[23357]: [TuyaAccessory] Blinds saw change to undefined
Apr 17 15:13:29 raspberrypi homebridge[23357]: [TuyaDiscovery] UDP from 192.168.2.105:6667 0x00005

but trying in Home, there is No reaction

@hollomeyflorian
Copy link

I have got the data from the accessories supposedly fine, but it doesn't work for me anyway. I just tried garage door and nothing. What can be? The switch or the data?

Thanks

Which switch do you have?

@hollomeyflorian
Copy link

hollomeyflorian commented Apr 17, 2020

@iRayanKhan Have you any idea what we could do for making “SimpleBlinds / SimpleBlinds2“ work? :/
Otherwise I will use a switch and define it as “Outlet“.

But I just wanted to ask you if you have found any solution for „Simple Blinds / SimpleBlinds2“.

@AlbertoAIG
Copy link

【LED Controlable】WiFi Interruptor Persiana, Maxcio Interruptor Inteligente Compatible con Alexa y Google Home, Control de APP y Función de Temporizador, para Motor Persiana, Motor de Obturador https://www.amazon.es/dp/B07NKNCNJV/ref=cm_sw_r_cp_api_i_rdDMEb5N3S6Y0

That’s

@hollomeyflorian
Copy link

@AlbertoAIG
I have no idea if such curtain switches can be defined as outlet. But my tuya light Switch can be defined as one.

@AlbertoAIG
Copy link

The truth is that I have a doubt. When I used a program to capture the schema, the key and so on I had to use a different one from "Tuya", add the switches and get them. Then I deleted that app again and added them back to the previous application. By doing that, does any of that data change? I say this because I am unable to make it work by switching between the different devices present in the plugin and from what you say, opening some works for example and nothing works for me.

Thank you

@iRayanKhan
Copy link
Owner

Nope Currently I have no found any way to make Simple Blinds or Simple Blinds 2 to work. I really don't see what's different between the custom commands and why it won't accept them. The only theory I have is that it doesn't like the open duration or extra parameters even though the schema still spits it out.

Sadly as I don't have any smart blinds I can do any testing on my own and don't get why it wouldn't work.

If the outlet way works, you could add a fake-blinds accessory and create an automation in the home app so when the blinds accessory opens, it turns that switch on.

@hollomeyflorian
Copy link

Cool idea!
I have known that there is the possibility to create fake switches and fake lights.
But there is also the possibility to create a fake blinds accessory? How can I do that?

@iRayanKhan
Copy link
Owner

Hi @florian-1309,

The creator of Homebridge has a plugin called homebridge-dummy which you can use for making fake switches.

@pickanothername
Copy link

Any updates on this? It was working fine for me until I re-paired my curtains and now I'm having that issue. I even modified the code to be more compatible with my blinds and even so it happens. Nothing should've changed..

@AndrewJ1990
Copy link

AndrewJ1990 commented Aug 31, 2020

Hi @iRayanKhan, I'm having this issue too, the blinds just not responding to either simpleblinds or simpleblinds2. Would the scheme of my device help at all? I'm happy to do some testing for you

@AndrewJ1990
Copy link

AndrewJ1990 commented Sep 1, 2020

Well I've managed to get it working so far. Ive changed from line 34-44 and it seems to be working. My Schema is below... The only thing it's not doing is changing its state in HomeKit if someone presses the button on the unit to open or close them.

 let _cmdOpen = 'open';
        if (this.device.context.cmdOpen) {
            _cmdOpen = ('' + this.device.context.cmdOpen).trim();
        }

        let _cmdClose = 'close';
        if (this.device.context.cmdClose) {
            _cmdClose = ('' + this.device.context.cmdClose).trim();
        }

        this.cmdStop = 'stop';

{
name: 'Blind',
id: '',
key: ',
def: {
schema: '[{"mode":"rw","code":"control","name":"\u63a7\u5236","property":{"range":["open","stop","close"],"type":"enum"},"iconname":"icon-dp_power2","id":1,"type":"obj"},{"mode":"rw","code":"percent_control","name":"\u5f00\u542f\u767e\u5206\u6bd4\u63a7\u5236","property":{"unit":"%","min":0,"max":100,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_power","id":2,"type":"obj"},{"mode":"ro","code":"percent_state","name":"\u5f00\u542f\u767e\u5206\u6bd4\u72b6\u6001","property":{"unit":"%","min":0,"max":100,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_warming","id":3,"type":"obj"},{"mode":"rw","code":"control_back","name":"\u7535\u673a\u53cd\u5411","property":{"type":"bool"},"iconname":"icon-dp_time2","id":5,"type":"obj"},{"mode":"rw","code":"work_state","name":"\u5de5\u4f5c\u72b6\u6001","property":{"range":["opening","closing"],"type":"enum"},"id":7,"type":"obj"},{"mode":"rw","code":"countdown","name":"\u5012\u8ba1\u65f6","property":{"range":["cancel","1","2","3","4"],"type":"enum"},"id":8,"type":"obj"},{"mode":"ro","code":"countdown_left","name":"\u5012\u8ba1\u65f6\u5269\u4f59\u65f6\u95f4","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":9,"type":"obj"},{"mode":"ro","code":"fault","scope":"fault","name":"\u6545\u969c\u544a\u8b66","property":{"label":["motor_fault"],"type":"bitmap","maxlen":1},"id":10,"type":"obj"},{"mode":"ro","code":"time_total","name":"\u5168\u7a0b\u8fd0\u884c\u65f6\u95f4","property":{"unit":"ms","min":0,"max":120000,"scale":0,"step":1,"type":"value"},"id":11,"type":"obj"}]',
extras: '[{"complexType":"","id":1,"inputStyle":"","inputType":" "},{"complexType":"","id":2,"inputStyle":"","inputType":" "},{"complexType":"","id":4,"inputStyle":"","inputType":" "},{"complexType":"","id":5,"inputStyle":"","inputType":" "},{"complexType":"","id":6,"inputStyle":"","inputType":" "},{"complexType":"","id":7,"inputStyle":"","inputType":" "},{"complexType":"","id":8,"inputStyle":"","inputType":" "},{"complexType":"","id":101,"inputStyle":"","inputType":"plain"}]',
},
},

@iRayanKhan
Copy link
Owner

@AndrewJ1990 do you have discord by chance?

@AndrewJ1990
Copy link

@iRayanKhan Yeah I do. "Jochsey"

@iRayanKhan
Copy link
Owner

@AndrewJ1990 whats your tag? It's the number after the #.

@AndrewJ1990
Copy link

@iRayanKhan sorry! It's #7339

@ReconCubed
Copy link

ReconCubed commented Nov 12, 2020

@AndrewJ1990 Thanks for this, help me fixed my issue #153 . You can just change the cmdOpen, cmdStop, and cmdClose parameters in the device config to those values, works perfectly after that.

If anyone else is looking, this worked for me:

“cmdOpen”: “open”,
“cmdClose”: “close”,
“cmdStop”: “stop”,
“dpAction: 1

@iRayanKhan
Copy link
Owner

@AndrewJ1990 would you like to make a PR for this? I'd be willing to merge it in.

@AndrewJ1990
Copy link

@iRayanKhan I ended up just doing what @ReconCubed suggested above and adding the values to the config. I also don't know how to do a PR sorry

@iRayanKhan
Copy link
Owner

If it works then no need for a PR it seems. Closing

@iRayanKhan iRayanKhan unpinned this issue Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants