Replies: 3 comments 7 replies
-
I'm not 100% sure I entirely understand the workflow above but I can offer some observations:
|
Beta Was this translation helpful? Give feedback.
7 replies
-
Ah, good to know. I’m in California so the weather is usually more cooperative, but water ingress , freezing or not, could cause problems in any climate.
Thanks for the heads up. I was originally looking for mercury switches but I think I figured “mercury” probably illegal to sell in California anyway. lol!
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the heads up. You are clearly a few level up on me😉
Very cleaver solution.
On the 8266, the interrupt handler for a GPIO pin and deep sleep wake up is the same so you can't tell which one triggered it. I put the 8266 into deep sleep for an hour and have it wake up to send status information. If the door was on a GPIO, I wouldn't be able to tell the difference between a door opening and waking from deep sleep. As for turning it on when the door is opened, it may not be opened long enough for the board to startup, connect, and send the status before it closes again.
With the ESP32, you can get that information and I have code to support it but have been having problems finding the right hardware. I want an ESP32 board with both a battery charger and external antenna. I can find boards with one or the other, but not both.
I used the reed switch so I didn't have to have wires running to door. I looked at mercury and ball switches too. Reed just worked out better for me is all.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#26 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT6MYXPNCRUM7WEHM6OMD33TMGT7ZANCNFSM4YXBTDHQ>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently have a button on a page that gets it text set based on an external trigger. What happens with the current automation is it saves the currently active page, changes to page 1 and sets the text. When button 4 is pressed, it resets the text and changes back to the original page. And to make it even more complicated, I need to be able to set the times when the trigger can happen.
Is this something that can be done with existing blueprints or am I looking at needed to create my own?
Here is the current automation that I am using. It is tied to a sensor in my mailbox that triggers the action.
`
########################################################################################
trigger:
topic: "mailbox/DoorTrigger"
condition:
condition: and
conditions:
after: '10:00:00'
before: '15:00:00'
entity_id: input_boolean.hasp_devplate_mail_triggered
state: 'off'
action:
data_template:
entity_id: "input_number.hasp_devplate_mail_activepage"
value: "{{states('input_number.hasp_devplate_activepage')|int}}"
data:
entity_id: input_boolean.hasp_devplate_mail_triggered
data:
topic: "hasp/devplate/command/json"
payload_template: >-
[
"page 1"
]
########################################################################################
trigger:
topic: "hasp/devplate/state/p[1].b[4]"
payload: "ON"
condition:
condition: state
entity_id: input_boolean.hasp_devplate_mail_triggered
state: 'on'
action:
data:
topic: "hasp/clear_mail_trigger"
########################################################################################
trigger:
topic: "hasp/clear_mail_trigger"
action:
entity_id: input_boolean.hasp_devplate_mail_triggered
data:
topic: "hasp/devplate/command/page"
payload_template: " {{ states('input_number.hasp_devplate_mail_activepage')|int }} "
########################################################################################
trigger:
entity_id: 'binary_sensor.devplate_connected'
to: 'on'
event: start
entity_id: 'input_boolean.hasp_devplate_mail_triggered'
to: "on"
condition:
condition: state
entity_id: input_boolean.hasp_devplate_mail_triggered
state: 'on'
action:
data:
topic: "hasp/devplate/command/json"
payload_template: >-
[
"p[1].b[4].txt="Mail's In"",
"p[1].b[4].bco=2016"
]
########################################################################################
trigger:
entity_id: 'binary_sensor.devplate_connected'
to: 'on'
event: start
entity_id: 'input_boolean.hasp_devplate_mail_triggered'
to: "off"
condition:
condition: state
entity_id: input_boolean.hasp_devplate_mail_triggered
state: 'off'
action:
data:
topic: "hasp/devplate/command/json"
payload_template: >-
[
"p[1].b[4].txt=" No Mail"",
"p[1].b[4].bco={{ states('input_number.hasp_devplate_selectedbackgroundcolor')|int }}"
]
##############################################################################
`
Beta Was this translation helpful? Give feedback.
All reactions