adding test for the new actions

This commit is contained in:
NP v/d Spek 2024-11-12 23:25:28 +01:00
parent ad2364e430
commit 3c2af89756
6 changed files with 114 additions and 0 deletions

View file

@ -14,3 +14,22 @@ display:
id: my_matrix
lambda: |-
it.printdigit("hello");
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4

View file

@ -14,3 +14,22 @@ display:
id: my_matrix
lambda: |-
it.printdigit("hello");
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4

View file

@ -14,3 +14,22 @@ display:
id: my_matrix
lambda: |-
it.printdigit("hello");
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4

View file

@ -14,3 +14,22 @@ display:
id: my_matrix
lambda: |-
it.printdigit("hello");
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4

View file

@ -14,3 +14,22 @@ display:
id: my_matrix
lambda: |-
it.printdigit("hello");
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4

View file

@ -14,3 +14,22 @@ display:
id: my_matrix
lambda: |-
it.printdigit("hello");
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4