Hello,
I have read many ways to display button cards in lovelace. Many use custom cards which I don’t feel I need. I am looking for the most standard, simple solution to this issue.
The button is for preheating water pipes. There is an Arduino to which I can GET a URL to switch the pump on. There is a different Arduino to which I can GET a URL to open a solenoid valve. The latter is needed to avoid preheating all the pipes in the house.
So far, I have tried the following. I create an ugly button with this code:
type: entity-button
tap_action:
action: none
hold_action:
action: none
show_icon: true
show_name: true
entity: automation.precalentar_agua
Then I got lost on the automation
alias: Precalentar agua
trigger:
platform: state
entity_id: binary_sensor.precalentar
to: 'on'
action:
service: notify.pushbullet
data:
title: ""
message: "Calentando"
But I never see the message when I press the button in lovelace.
What I actually need to do is to GET the above mentioned two URLs, wait for some minutes, then GET the power down/close counterparts.
Any pointers and help appreciated. Thanks!