Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matlen67/ansluta-control
Control Ikea Ansluta by NodeMCU CC2500
https://github.com/matlen67/ansluta-control
Last synced: about 2 months ago
JSON representation
Control Ikea Ansluta by NodeMCU CC2500
- Host: GitHub
- URL: https://github.com/matlen67/ansluta-control
- Owner: matlen67
- Created: 2018-11-26T20:06:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-28T17:11:09.000Z (almost 3 years ago)
- Last Synced: 2023-03-02T09:45:35.545Z (almost 2 years ago)
- Language: C++
- Size: 3.86 MB
- Stars: 25
- Watchers: 1
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansluta-control
#### Ikea Ansluta remote control by nodeMCU and CC2500 2.4Ghz transceiver via arduinoThis project was created to control Ikea Omlopp/Utrusta lights by webbrowser or add it to a home automation system (FHEM)
The original remote has one Button. With every push the lights cycle -> 50% -> 100% -> 50% -> offThe remote send a series of data icluded two own address bytes.
- example: 0x55 0x01 0xD0 0x9A 0x02 0xAA (0xD0 & 0x9A my addressbytes)
## Hardware:
- Lolin NodeMCU V3 [az-delivery](https://www.az-delivery.de/collections/wifi-module/products/copy-of-nodemcu-lua-amica-v2-modul-mit-esp8266-12e?ls=de)
- CC2500 Transiver module (WLC24D) [ebay](https://www.ebay.com/itm/2PCS-1-8-3-6V-CC2500-IC-Wireless-RF-2400MHZ-Transceiver-Module-SPI-ISM-Demo-Code/401239287968)
## Software:
- Arduino IDE [www.arduino.cc](https://www.arduino.cc/en/Main/Software)#### Setup Arduino IDE
- Go to Tools -> Boards Manager and seach 'nodemcu'
- install -> 'esp8266 by ESP8266 Community'- Select Board: NodeMCU 1.0 (ESP.12E Module)
- Set CPU Frequency to 160 Mhz
- Select com port## Get the Ansluta address bytes from your remote
- start Arduion ide, load project files
- edit ansluta.ino -> set your SSID and Wlankey at row 40, 41
- write project to nodeMCU
- determine your nodeMCU IP and connect browser. example: **192.168.178.130/ansluta/getAddress**
- press button on original remote
- note your AddressBytes
- edit ansluta.ino -> set your AddressByteA and AddressByteB at row 54, 55
- write project to nodeMCU## Control the lights via webbrowser
connect to nodeMCU IP
press button: off, 50% or 100% to toggle the lights## Control the lights via FHEM
create dummy switch and notify to call the url```
define AnslutaButton0 dummy
attr AnslutaButton0 alias Ansluta lights off
attr AnslutaButton0 devStateIcon .*:FS20.on@grey
attr AnslutaButton0 room Ansluta
attr AnslutaButton0 webCmd offdefine anslutaButton0_notify notify AnslutaButton0:off { system("curl 192.168.178.130/ansluta/0") }
define AnslutaButton50 dummy
attr AnslutaButton50 alias Ansluta lights 50%
attr AnslutaButton50 devStateIcon .*:FS20.on@orange
attr AnslutaButton50 room Ansluta
attr AnslutaButton50 webCmd ondefine ansluta50_notify notify AnslutaButton50:on { system("curl 192.168.178.130/ansluta/50") }
define AnslutaButton100 dummy
attr AnslutaButton100 alias Ansluta light 100%
attr AnslutaButton100 devStateIcon .*:FS20.on@yellow
attr AnslutaButton100 room Ansluta
attr AnslutaButton100 webCmd ondefine ansluta100_notify notify AnslutaButton100:on { system("curl 192.168.178.130/ansluta/100") }
```example pictures FHEM and Tablet-UI: