Open Poli88 opened 4 years ago
First of allow need to establish if you are actually receiving the event, please try adding alert(1);
right after action: function(e) {
.
I've also noticed that your automation is tuned off by default (initial_state: false
).
And lastly, window.fully.stopScreensaver();
is a function calling internal screensaver of Fully Kiosk browser, not TileBoard one.
still nothing. I removed the initial_state and added the alert. But nothing happens. Even if I trigger manually the automation through "Developers tools".
- alias: 'Screensaver'
trigger:
platform: state
entity_id: input_boolean.home_mode
from: "on"
to: "off"
action:
- event: tileboard
event_data:
command: 'screen_off
{
command: 'screen_off',
action: function(e) {
alert(1);
if (window.fully) {
window.fully.startScreensaver();
}
},
},
{
command: 'screen_on',
action: function(e) {
alert(1);
if (window.fully) {
window.fully.stopScreensaver();
window.fully.bringToForeground();
}
},
I'm actually running home assistant on 7" display in kiosk mode. But I would like to trigger the screensaver of tileboard... So no event received...what could be the issue ?
Hello, I wanted to make a simple automation to start the screensaver at certain hours. So I added the below in my:
config.js (events)
config.js
Could you help me to understand why the automation cannot send the screensaver command ?