-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.yaml
43 lines (37 loc) · 904 Bytes
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
esphome:
name: YourDevcieName
friendly_name: Your Devcie Name
external_components:
- source:
type: git
url: https://github.com/omersht/ElectraEspHome
ref: main
api:
actions:
- action: sync_electra_state
then:
- lambda: |-
id(someid).sync_state();
sensor:
- platform: tempsensor
name: "Temperature"
id: temp
remote_transmitter:
pin: (your pin)
carrier_duty_percent: 50% #test with different values to see what works best
id: ir_transmitter
remote_receiver:
pin:
number: (your pin)
inverted: True(or False, try both to see what works)
mode: INPUT_PULLUP
id: ir_receiver
climate:
- platform: electra
name: (your name)
id: someid
transmitter_id: ir_transmitter
receiver_id: ir_receiver
supports_off_command: True
sensor: temp
# all options suported in IR Remote Climate are suported