UNPKG
hm-simulator
Version:
latest (0.1.1)
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
Simulates a Homematic CCU
github.com/hobbyquaker/hm-simulator
hobbyquaker/hm-simulator
hm-simulator
/
behaviors
/
window-open-close.js
9 lines
(8 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
module
.
exports
=
api
=>
{
setInterval
(
() =>
{ api.
emit
(
'setValue'
,
'hmip'
,
'0000D3C98C9233:1'
,
'STATE'
,
true
);
setTimeout
(
() =>
{ api.
emit
(
'setValue'
,
'hmip'
,
'0000D3C98C9233:1'
,
'STATE'
,
false
); },
30000
); },
60000
); };