forked from MortenVinding/Robomow-ESP32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
robomow.yaml
149 lines (142 loc) · 4.53 KB
/
robomow.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Add to or create a secrets.yaml file in the config dir and put:
# robomow_user: <username>
# robomow_pass: <password>
switch:
- platform: template
switches:
robomowble:
value_template: "{{ is_state_attr('sensor.robomow', 'cBLEsw', 'lightgreen') }}"
turn_on:
service: script.turn_on
entity_id: script.robomow_ble_on
turn_off:
service: script.turn_on
entity_id: script.robomow_ble_off2
robomowbleweekprogramm:
value_template: "{{ is_state_attr('sensor.robomow_once', '50', '1') }}"
turn_on:
service: script.turn_on
entity_id: script.robomowweekon2
turn_off:
service: script.turn_on
entity_id: script.robomowweekoff
rest_command:
robomowbleoff:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?250=0"
robomowbleon:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?250=1"
robomowweekoff:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?50=0"
robomowweekon:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?50=1"
robomowkante:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?1=1"
robomowflaeche:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?3=1"
robomowhome:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?2=1"
robomowstop:
username: !secret robomow_user
password: !secret robomow_pass
url: "http://192.168.0.133/setcmds?4=1"
sensor:
- platform: rest
authentication: basic
username: !secret robomow_user
password: !secret robomow_pass
scan_interval: 300
method: GET
resource: http://192.168.0.133/renew
name: robomow
json_attributes:
- "0"
- "5"
- "6"
- "11"
- "12"
- "13"
- "14"
- "cDSnear"
- "blesw"
- "cBLEsw"
- "rssi"
value_template: "{{ value_robomow.x }}"
- platform: rest
authentication: basic
username: !secret robomow_user
password: !secret robomow_pass
resource: http://192.168.0.133/once
name: robomow_once
json_attributes:
- "50"
method: GET
scan_interval: 3600
value_template: "{{ value_robomow.once }}"
- platform: rest
authentication: basic
username: !secret robomow_user
password: !secret robomow_pass
name: robomow_console
json_attributes:
- "fheap"
- "ifr_msg_isw"
- "ifr_msg_msw"
- "ifr_msg_ssw"
- "gpslat"
- "gpslon"
resource: http://192.168.0.133/console
method: GET
scan_interval: 5
value_template: "{{ value_robomow.x }}"
- platform: template
sensors:
location:
friendly_name: "Location"
value_template: "{{state_attr('sensor.robomow_console', 'gpslat') }},{{ state_attr('sensor.robomow_console', 'gpslon') }}"
attribute_templates:
latitude: "{{state_attr('sensor.robomow_console', 'gpslat') }}"
longitude: "{{ state_attr('sensor.robomow_console', 'gpslon') }}"
robomow_soc:
friendly_name: "Battery SoC"
unit_of_measurement: "%"
device_class: battery
# Need to remove last 2 character since HA will not accept " %"
value_template: "{{state_attr('sensor.robomow', '0')[:-2] }}"
robomow_cdsnear:
friendly_name: "cDSnear"
value_template: "{{state_attr('sensor.robomow', 'cDSnear') }}"
robomow_status:
friendly_name: "Current status"
value_template: "{{state_attr('sensor.robomow', '6') }}"
robomow_timeleft:
friendly_name: "Cutting time left"
value_template: "{{state_attr('sensor.robomow', '11') }}"
robomow_nextstart:
friendly_name: "Cutting next start"
value_template: "{{state_attr('sensor.robomow', '5') }}"
robomow_moisture:
friendly_name: "Moisture"
unit_of_measurement: "%"
value_template: "{{state_attr('sensor.robomow', '13') }}"
robomow_percentagecut:
friendly_name: "Percentage cut"
unit_of_measurement: "%"
value_template: "{{state_attr('sensor.robomow', '12')[:-2] }}"
robomow_rssi:
friendly_name: "WiFi rssi"
unit_of_measurement: "dBm"
value_template: "{{state_attr('sensor.robomow', 'rssi') }}"