ansible/playbooks/modify_espresense.yml
2024-06-03 00:08:01 +02:00

90 lines
2.0 KiB
YAML

- hosts: nas
name: Reconfigure espresense
ignore_unreachable: false
tasks:
- name: Check that you can connect (GET) to a page and it returns a status 200
ansible.builtin.uri:
url: http://192.168.77.150
method: POST
body_format: form-urlencoded
body:
language: en
room:
wifi_timeout:
portal_timeout:
mqtt_host: 192.168.77.106
mqtt_port: 1883
mqtt_user: jaydee
mqtt_pass: jaydee1
discovery: 1
discovery_prefix:
pub_tele: 1
pub_rooms: 1
pub_devices: 1
update:
known_macs:
known_irks:
query:
count_ids:
count_enter:
count_exit:
count_ms:
include: "mifit:fd2375de188a"
exclude:
max_dist: 3
skip_dist:
skip_ms:
ref_rssi:
rx_adj_rssi:
absorption:
forget_ms:
tx_ref_rssi:
led_1_pin: -1
led_1_cnt:
led_2_pin: -1
led_2_cnt:
led_3_pin:
led_3_cnt:
pir_type: 0
pir_pin: 16
pir_timeout:
radar_pin:
radar_timeout:
switch_1_pin:
switch_1_timeout:
switch_2_pin:
switch_2_timeout:
button_1_pin:
button_1_timeout:
button_2_pin:
button_2_timeout:
dht11_pin:
dht22_pin:
dhtTemp_offset:
I2C_Bus_1_SDA: 22
I2C_Bus_1_SCL: 21
I2C_Bus_2_SDA:
I2C_Bus_2_SCL:
AHTX0_I2c_Bus:
AHTX0_I2c:
BH1750_I2c_Bus:
BH1750_I2c:
BME280_I2c_Bus: 1
BME280_I2c: "0x76"
BMP180_I2c_Bus:
BMP180_I2c:
BMP280_I2c_Bus:
BMP280_I2c:
SHT_I2c_Bus:
TSL2561_I2c_Bus:
TSL2561_I2c:
TSL2561_I2c_Gain:
SGP30_I2c_Bus:
SGP30_I2c:
HX711_sckPin:
HX711_doutPin:
ds18b20_pin:
dsTemp_offset:
ignore_errors: true