Skip to content

Instantly share code, notes, and snippets.

View e3e6's full-sized avatar

Alexander e3e6

  • Ukraine
View GitHub Profile
@e3e6
e3e6 / main.m5f2
Created January 7, 2025 19:29
M5Stack Atom Echo: i2c driver install error
{"version":"V2.0","versionNumber":"V2.2.0","type":"atom-echo","components":[],"resources":[{"hardware":["hardware_button","hardware_pin_button","rgb","speaker","ir","mic"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\"2Y=RySQQbfp`yn1MQS()\">color</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"rgb_init\" id=\"XK3-BI@0XeY]U*i;+T;p\"><mutation mode=\"builtin\"></mutation><field name=\"MODE\">builtin</field><next><block type=\"variables_set\" id=\"}R1^ol`LS4xE$8%N,gKR\"><field name=\"VAR\" id=\"2Y=RySQQbfp`yn1MQS()\">color</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"H@^?(G!!1Y/XQ_sH?qE_\"><field name=\"BOOL\">TRUE</field></block></value></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id
@e3e6
e3e6 / gist:4a26874951b46411b26ef6805d793b29
Created July 20, 2024 15:04
How to control APC UPS beeper from Home Assistant
Hassio Core 2024.7.2
DSM 7.2
APC UPS connected to Synology NAS via USB.
---
1. Enable UPS service in Synology
https://kb.synology.com/en-uk/DSM/help/DSM/AdminCenter/system_hardware_ups?version=7
2. Add UPS to HomeAssistant using NUT integration to get https://www.home-assistant.io/integrations/nut
- [host] Synology local IP address
- [port] 3493