HixIRBlaster
A WIFI connected IR transmitter and receiver based on the ESP8266 microcontroller. It is connected via MQTT where it :
- receives commands to switch-on my airco (Samsung only for the moment)
- send arbitrary IR (hex) codes.
- publishes the detected IR codes (via its IR receiver)
Improvements
- Configuration of WIFI SSID/PWD via web interface
- Design a PCB and 3D printed enclosure
- Add DS18B20 temperature sensor?
- Add OLED display to show current temp + airco status
hardware
- add button
- add ds18b20
- add i2c display interface
- add RGB lede
- add connector for radar motion?
- optional i2c term resistor
- room for the mhz19 (on the side)
- different places to mount ir receiver or led?
MQTT
Publishing
{room}
└─── HixCO2
└─── {deviceTag}
└─── device
│ └─── count
│ └─── room
│ └─── device_type
│ └─── device_version
│ └─── device_tag
│ └─── device_name
│ └─── wifi_ssid
│ └─── wifi_ip
│ └─── ac_temperature
│
└─── status
│ └─── count
│ └─── wifi_rssi
│ └─── ac_enabled
│ └─── ir_received
│
└─── subscribe
│ └─── ac_temperature
│ └─── ac_on
│ └─── ac_off
│ └─── ac_toggle
│ └─── send_raw_ir
│
└─── influxdb
Subscribing
This device listens to the above depicted topics to set set the ac on/off (or toggle it), set the desired temperature and you can send raw ir codes.
influxdb
topic publishing contents
To make the import in the influxdb from Node-RED as easy as possible the influxdb
topic publishes a json document that can immediatly imported using the influxdb in
node.
They only thing required is to convert it to a json object via the To json
node.
Following the influxdb in
node the json is an array where:
- the first element contains the measurements
- the second element contains the tags
[
{
"wifi_rssi" : -45
"ac_enabled" : true
"ir_received" : "A78BCD"
},
{
"device_type" : "HixIRBlaster",
"device_version": "2.5.8",
"device_tag" : "at_door"
"room" : "office",
"wifi_ssid" : "public_wifi"
}
]
Configuration web interface
- Once connectted to the WIFI a normal browser can be used to configure the MQTT details.
- Just go the the device's ip address with your browser
- Password is intitially set as
bornem1973
. - At this moment the WIFI SSID and password are hardcoded in the src/secret.cpp file