# Alarm Clock Home Assistant Esp8266

**URL:** <https://discourse.nodered.org/t/alarm-clock-home-assistant-esp8266/59049>\
**Category:** Hardware\
**Created:** [27 February 2022 00:29 UTC](https://discourse.nodered.org/t/alarm-clock-home-assistant-esp8266/59049 "2022-02-27T00:29:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Techttv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/techttv/32/57492_2.png) [@Techttv](https://discourse.nodered.org/u/Techttv)\
**Post date:** [27 February 2022 00:29 UTC](https://discourse.nodered.org/t/alarm-clock-home-assistant-esp8266/59049/1 "2022-02-27T00:29:23Z")

</div>

Hi, I know this is a big project but I want to try. I'd like to do a panel on Home Assistant to set an alarm clock. When it's time nodered send a command to my esp8266 which ring and print on the LCD the name of the alarm. At the moment I'm trying to figure out how to execute Arduino command like digitalWrite(buzzerpin,HIGH) and ecc..  
Any tips?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 February 2022 07:47 UTC](https://discourse.nodered.org/t/alarm-clock-home-assistant-esp8266/59049/2 "2022-02-27T07:47:11Z")

</div>

Welcome to the forum @Techttv

This sounds more like a home assistant question than a node red one. Few here use HA so you might be better asking on a HA forum.

If you think it is a node red question then try asking it without mentioning HA so we can see exactly what you are asking.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [27 February 2022 12:42 UTC](https://discourse.nodered.org/t/alarm-clock-home-assistant-esp8266/59049/3 "2022-02-27T12:42:12Z")

</div>

> [@Techttv](#):
>
> At the moment I'm trying to figure out how to execute Arduino command like digitalWrite(buzzerpin,HIGH)

You should probably be using mqtt to send commands to the ESP.  
The Arduino code needs to connect to a broker and subscribe to a topic.  
I use a Raspberry Pi to run the Mosquitto broker as well as Node-red.  
On the ESP use a callback to handle the message and trigger the buzzer.  
There are lots of Arduino examples for mqtt and callbacks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 April 2022 12:42 UTC](https://discourse.nodered.org/t/alarm-clock-home-assistant-esp8266/59049/4 "2022-04-28T12:42:48Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
