This shows you the differences between two versions of the page.
|
iothings:laboratoare:2025:lab5 [2025/10/27 21:13] dan.tudose [Zigbee Router + End Device] |
iothings:laboratoare:2025:lab5 [2025/10/28 11:35] (current) dan.tudose [Switch as a Sleepy ED] |
||
|---|---|---|---|
| Line 257: | Line 257: | ||
| [[iothings:laboratoare:2025_code:lab5_3|Click here to get the code for this example.]] | [[iothings:laboratoare:2025_code:lab5_3|Click here to get the code for this example.]] | ||
| + | <note>**Assignment 1:** | ||
| + | Use the on-board BME680 sensor to switch lights on/off depending on the switch temperature instead of pushing a button. For example, if the temperature is above 25 degrees C, the light should turn on. | ||
| + | </note> | ||
| + | |||
| + | <note>**Assignment 2:** | ||
| + | Encode more than simple on/off behavior from the switch. For example, a press toggles, and a hold dims up/down. Add a long-press detector on GPIO 9 and send MoveWithOnOff / Stop commands; on the bulb, implement Level Control callbacks to set NeoPixel brightness with transition times. | ||
| + | </note> | ||
| + | |||
| + | <hidden> | ||
| + | Pentru asistenți: la laboratorul ăsta o să aveți nevoie de un gateway Home Assistant cu stick Zigbee Coordinator atașat. Dacă nu aveți așa ceva, întrebați-l pe Dan Tudose. | ||
| + | |||
| + | </hidden> | ||