Arduino Smart Logging

The problem Often when programming in Arduino you need some logging to the serial port. Most often this is done with a lot of “Serial.println” statements. To make some nice output the logging code easily becomes quite big. Here is an example that illustrates the problem: #define NUMBER_OF_APPLES 100 uint8_t applesPerPerson = findApplesPerPerson( peopleAmount ); […]

Read More

Asterisk in Home Assistant – Part 3

The automation The final part is to glue things together in an automation. In configuration.yaml i added: automation: – alias: ‘Flash lights’ trigger: – platform: state entity_id: sensor.asterisk_extension_1000 to: ‘Ringing’ action: – service: light.turn_on data: entity_id: light.living_room flash: long   Now calling myself will flash the lighs in my living room 🙂   When things […]

Read More