AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
206 stars 52 forks source link

A number of new Tuya devices ... #131

Open chinloon opened 4 years ago

chinloon commented 4 years ago

Bought a new bunch of Tuya devices. Anyone sucessfully control them from homebridge-tuya-lan?

IR Remote control https://www.aliexpress.com/item/32983284057.html?spm=a2g0s.9042311.0.0.27424c4d7EvsMf

Door lock https://www.aliexpress.com/item/4000065467682.html?spm=a2g0s.9042311.0.0.27424c4d7EvsMf

Siren with Temp & humidity sensors https://www.aliexpress.com/item/32983607120.html?spm=a2g0s.9042311.0.0.27424c4d7EvsMf

PIR Motion Sensor https://www.aliexpress.com/item/4000310404064.html?spm=a2g0s.9042311.0.0.5f834c4diiqWsI

Smoke Detector https://www.aliexpress.com/item/4000256897751.html?spm=a2g0s.9042311.0.0.5f834c4diiqWsI

Wifi Camera https://www.aliexpress.com/item/4000106582416.html?spm=a2g0s.9042311.0.0.5f834c4diiqWsI

chinloon commented 4 years ago

Adding another one is this door/window sensor https://www.aliexpress.com/item/33042579114.html?spm=a2g0s.9042311.0.0.27424c4dtvNJEZ

Looking at the settings for those already available, am looking to see which can be used..

For example, am looking to use "convector" to get the temperature from the Siren but where can I get humidity?

Can I use GarageDoor to read smoke detector, PIR Motion Sensor and Door/Window sensor?

Zacknetic commented 4 years ago

For the PIR Motion Sensor, I can add the details.

[ { name: 'PIR Sensor', id: '70575700ecfabc671e7e', key: 'bc130b6e5e9e5958', def: { schema: '[{"mode":"ro","code":"PIR","name":"PIR","property":{"range":["pir"],"type":"enum"},"id":101,"trigger":"direct","type":"obj","desc":"pir \\u68c0\\u6d4b"},{"mode":"ro","code":"battery","name":"\\u7535\\u6c60\\u7535\\u91cf","property":{"unit":"","min":0,"max":10000,"scale":0,"step":1,"type":"value"},"id":103,"type":"obj","desc":"mcu \\u4e0a\\u62a5\\u7535\\u6c60\\u7535\\u91cf"}]', }, }, ]

chinloon commented 4 years ago

Tried to use "Garage Door" device. Needed to specify "ip". However, as the command expects to open and close, does not seem to work. Need a device that only displays readings from devices...

anderslutzhoft commented 4 years ago

Any luck getting the IR remote added to homebridge?

jeylites commented 4 years ago

@Zacknetic

Hi did you manage to get a motion sensor working with this plugin and if so which type did you buy?

petcol commented 4 years ago

I am having a different problem and it's with HOOBS, homebridge-tuya-lan v 1.4.0 The config file has a number of Tuya Outlet devices, but only the first in the list is showing in the accessories? HOOBS config file <-----------------start cut ------------> { "platform": "TuyaLan", "devices": [ { "name": "Left Pool Garden Lights", "type": "Outlet", "manufacturer": "Powertech", "model": "Smart Wifi plug socket", "id": "<----------ID from TUYA IoT -redacted for privacy------------->", "key": "<----------- KEY from TUYA IoT - redacted for privacy------------->" }, { "name": "Rear grass lights", "type": "Outlet", "manufacturer": "Powertech", "model": "Smart Wifi plug socket", "id": "<-----------redacted for privacy------------->", "key": "<-----------redacted for privacy------------->" }, { "name": "Upstairs Office Light", "type": "Outlet", "manufacturer": "Bauhn ALDI", "model": "Smart Wifi plug socket", "id": "<-----------redacted for privacy------------->", "key": "<-----------redacted for privacy------------->" }, { "name": "Back Deck Fountain Light", "type": "Outlet", "manufacturer": "Bauhn ALDI", "model": "Smart Wifi plug socket", "id": "<-----------redacted for privacy------------->", "key": "<-----------redacted for privacy------------->" } ] } <------------- end cut -----------> I have tried it with Homebridge using this version same issue, then I uninstalled and installed an earlier version problem solved?

Any suggestions. I'm running HOOBS on a Raspberry pi xero

jeylites commented 4 years ago

@petcol

It could be because you didn't include platforms. Can you paste your full config here?


    },
    "description": "",
    "platforms": [
        {
            "platform": "TuyaLan",
            "devices": [
                {
petcol commented 4 years ago

I thought I'd done that originally and HOOBS took it out, I'll give it another try now. yeah so here is the full config, I hope I didn't cause confusion i guess I have in which case apologies. { "platform": "TuyaLan", "devices": [ { "name": "Left Pool Garden Lights", "type": "Outlet", "manufacturer": "Powertech", "model": "Smart Wifi plug socket", "id": "<----------ID from TUYA IoT -redacted for privacy------------->", "key": "<----------- KEY from TUYA IoT - redacted for privacy------------->" }, { "name": "Rear grass lights", "type": "Outlet", "manufacturer": "Powertech", "model": "Smart Wifi plug socket", "id": "<----------ID from TUYA IoT -redacted for privacy------------->", "key": "<----------- KEY from TUYA IoT - redacted for privacy------------->" }, { "name": "Upstairs Office Light", "type": "Outlet", "manufacturer": "Baun ALDI", "model": "Smart Wifi plug socket", "id": "<----------ID from TUYA IoT -redacted for privacy------------->", "key": "<----------- KEY from TUYA IoT - redacted for privacy------------->" }, { "name": "Back Deck Fountain Light", "type": "Outlet", "manufacturer": "Baun ALDI", "model": "Smart Wifi plug socket", "id": "<----------ID from TUYA IoT -redacted for privacy------------->", "key": "<----------- KEY from TUYA IoT - redacted for privacy------------->" } ] }

This is the Confuration from the PLUGINS for Tuya-Lan or am I missing something?

petcol commented 4 years ago

I was using Homebridge on an existing installation of Raspberry Pi Xero.

I downloaded and flashed another SD card and ran it up on that, somehow that version relates more to what you saying and now works.