So, nun habe ich mal einen Node mit dem Skript geflash und in FHEM eingebunden. Naja, Man kann die Ausgänge triggern, sie laufen dann so 10s und gehen dann wieder aus. Im Skript steht was von drei Variablen die man einstellen kann, die verwenden dort Vera Smart Home. Hier mal der Auszug aus dem Arduino Skript, wo das steht:
INSTRUCTIONS:
* A step-by-step setup video is available here: http://youtu.be/l4GPRTsuHkI
* After assembling your arduino, radio, decoupling capacitors, shift register(s), status LED, pushbutton LCD (I2C connected to
A4 and A5) and relays, and load the sketch.
* Following the instructions at https://MySensors.org include the device to your MySensors Gateway.
* Verify that each new device has a Variable1, Variable2 and Variable3. Populate data accordingly with whole minutes for
the RUN_ALL_ZONES routine (Variable1) and the RUN_SINGLE_ZONE routines (Variable 2). The values entered for times may be zero and
you may use the defaulet zone names by leaving Variable3 blank.
* Once you have entered values for each zone and each variable, save the settings by pressing the red save button on your Vera.
* Restart your arduino; verify the settings are loaded into your arduino with the serial monitor; the array will be printed
on the serial monitor.
* Your arduino should slow-flash, indicating that it is in ready mode.
* There are multiple debug serial prints that can be monitored to assure that it is operating properly.
Mir jetzt noch ein Rätsel wie sich diese drei Variablen den über Fhem ändern kann.
Das List von dem Device sieht so aus:
Internals:
CFGFN
DEF 102
FUUID 5ce3c4a7-f33f-ab72-3df6-65295d417ddb5698
IODev meinMSG
I_DEBUG 1
I_RSSI 1
NAME MYSENSOR_102
NR 10656
STATE received presentation
TYPE MYSENSORS_DEVICE
ack 0
radioId 102
repeater 1
version 2.3.1
Helper:
DBLOG:
SKETCH_NAME:
logmysql:
TIME 1558433332.42655
VALUE MySprinkler
SKETCH_VERSION:
logmysql:
TIME 1558433332.43659
VALUE 2.2
parentId:
logmysql:
TIME 1558433332.36077
VALUE 0
state:
logmysql:
TIME 1558437017.63205
VALUE status1 on
status:
logmysql:
TIME 1558437025.14573
VALUE off
status1:
logmysql:
TIME 1558437025.16301
VALUE off
status2:
logmysql:
TIME 1558437025.1791
VALUE off
status3:
logmysql:
TIME 1558437025.19637
VALUE off
status4:
logmysql:
TIME 1558437025.21139
VALUE off
status5:
logmysql:
TIME 1558437025.22716
VALUE off
status6:
logmysql:
TIME 1558437025.24219
VALUE off
status7:
logmysql:
TIME 1558437025.25518
VALUE off
status8:
logmysql:
TIME 1558437025.26491
VALUE off
READINGS:
2019-05-21 12:08:52 SKETCH_NAME MySprinkler
2019-05-21 12:08:52 SKETCH_VERSION 2.2
2019-05-21 12:08:52 parentId 0
2019-05-21 11:28:08 state received presentation
2019-05-21 13:10:25 status off
2019-05-21 13:10:25 status1 off
2019-05-21 13:10:25 status2 off
2019-05-21 13:10:25 status3 off
2019-05-21 13:10:25 status4 off
2019-05-21 13:10:25 status5 off
2019-05-21 13:10:25 status6 off
2019-05-21 13:10:25 status7 off
2019-05-21 13:10:25 status8 off
gets:
readingMappings:
0:
17:
name power
2:
name status
1:
17:
name power1
2:
name status1
2:
17:
name power2
2:
name status2
3:
17:
name power3
2:
name status3
4:
17:
name power4
2:
name status4
5:
17:
name power5
2:
name status5
6:
17:
name power6
2:
name status6
7:
17:
name power7
2:
name status7
8:
17:
name power8
2:
name status8
retainedMessagesForRadioId:
sensorMappings:
0:
receives:
sends:
16
15
1:
receives:
sends:
16
15
10:
receives:
sends:
6
7
11:
receives:
sends:
11
12:
receives:
sends:
12
14
13:
receives:
24
sends:
17
18
54
55
56
24
14:
receives:
sends:
45
21
0
2
15:
receives:
sends:
13
43
16:
receives:
sends:
23
37
17:
receives:
sends:
18:
receives:
sends:
19:
receives:
36
sends:
36
2:
receives:
sends:
16
15
20:
receives:
32
sends:
33
50
32
21:
receives:
24
sends:
34
35
24
22:
receives:
sends:
37
43
23:
receives:
24
25
26
27
28
sends:
24
25
26
27
28
24:
receives:
sends:
37
43
25:
receives:
sends:
19
20
26:
receives:
40
17
3
sends:
40
17
3
27:
receives:
41
17
3
sends:
41
17
3
28:
receives:
40
sends:
40
29:
receives:
sends:
2
0
45
44
21
46
22
3:
receives:
2
17
sends:
2
17
30:
receives:
sends:
38
39
14
31:
receives:
sends:
2
16
32:
receives:
sends:
16
15
33:
receives:
sends:
37
16
15
34:
receives:
sends:
37
16
15
35:
receives:
sends:
37
16
15
36:
receives:
47
sends:
47
37:
receives:
sends:
34
35
38:
receives:
sends:
49
39:
receives:
sends:
0
51
52
53
2
4:
receives:
2
3
17
sends:
2
3
17
5:
receives:
29
30
31
3
sends:
29
30
31
3
6:
receives:
sends:
0
42
7:
receives:
sends:
1
8:
receives:
sends:
4
5
9:
receives:
sends:
8
9
10
setcommands:
sets:
clear noArg
flash noArg
fwType
power 1
power1 1
power2 1
power3 1
power4 1
power5 1
power6 1
power7 1
power8 1
reboot noArg
status on,off
status1 on,off
status2 on,off
status3 on,off
status4 on,off
status5 on,off
status6 on,off
status7 on,off
status8 on,off
time noArg
typeMappings:
0:
type temperature
1:
type humidity
10:
type direction
11:
type uv
12:
type weight
13:
type distance
14:
type impedance
15:
type armed
val:
0 off
1 on
16:
type tripped
val:
0 off
1 on
17:
type power
18:
type energy
19:
type button_on
2:
type status
val:
0 off
1 on
20:
type button_off
21:
type hvacflowstate
22:
type hvacspeed
23:
type brightness
range:
max 100
min 0
step 1
24:
type value1
25:
type value2
26:
type value3
27:
type value4
28:
type value5
29:
type up
3:
type percentage
range:
max 100
min 0
step 1
30:
type down
31:
type stop
32:
type ir_send
33:
type ir_receive
34:
type flow
35:
type volume
36:
type lockstatus
val:
0 off
1 on
37:
type level
38:
type voltage
39:
type current
4:
type pressure
40:
type rgb
41:
type rgbw
42:
type id
43:
type unitprefix
44:
type hvacsetpointcool
45:
type hvacsetpointheat
46:
type hvacflowmode
47:
type text
48:
type custom
49:
type position
5:
type forecast
val:
0 stable
1 sunny
2 cloudy
3 unstable
4 thunderstorm
5 unknown
50:
type ir_record
51:
type ph
52:
type orp
53:
type ec
54:
type value
55:
type va
56:
type power_factor
6:
type rain
7:
type rainrate
8:
type wind
9:
type gust
Attributes:
IODev meinMSG
mapReading_power 0 power
mapReading_power1 1 power
mapReading_power2 2 power
mapReading_power3 3 power
mapReading_power4 4 power
mapReading_power5 5 power
mapReading_power6 6 power
mapReading_power7 7 power
mapReading_power8 8 power
mapReading_status 0 status
mapReading_status1 1 status
mapReading_status2 2 status
mapReading_status3 3 status
mapReading_status4 4 status
mapReading_status5 5 status
mapReading_status6 6 status
mapReading_status7 7 status
mapReading_status8 8 status
mode repeater
room Garten,GoogleAssistant,Mysensors
setReading_power 1
setReading_power1 1
setReading_power2 1
setReading_power3 1
setReading_power4 1
setReading_power5 1
setReading_power6 1
setReading_power7 1
setReading_power8 1
setReading_status on,off
setReading_status1 on,off
setReading_status2 on,off
setReading_status3 on,off
setReading_status4 on,off
setReading_status5 on,off
setReading_status6 on,off
setReading_status7 on,off
setReading_status8 on,off
Hat jemand ne Idee? Wenn es denn mit Vera geht muss es doch auch mit Fhem gehen...
Viele Grüße Martin