Windfree poller application & jenkins pipeline
This commit is contained in:
47
config.example.toml
Normal file
47
config.example.toml
Normal file
@@ -0,0 +1,47 @@
|
||||
[poller]
|
||||
collector_id = "pi-zero-living-room"
|
||||
device_id = "00000000-0000-0000-0000-000000000000"
|
||||
interval_seconds = 300
|
||||
request_timeout_seconds = 20
|
||||
|
||||
[smartthings]
|
||||
base_url = "https://api.smartthings.com/v1"
|
||||
# For production, set these via SMARTTHINGS_* environment variables.
|
||||
client_id = ""
|
||||
client_secret = ""
|
||||
refresh_token = ""
|
||||
token_file = "/var/lib/smartthings-windfree/token.json"
|
||||
# Testing only; current PATs expire after 24 hours:
|
||||
access_token = ""
|
||||
access_token_file = ""
|
||||
|
||||
[redpanda_connect]
|
||||
url = "http://127.0.0.1:4195/windfree"
|
||||
timeout_seconds = 15
|
||||
|
||||
[[fields]]
|
||||
name = "temperature"
|
||||
component = "main"
|
||||
capability = "temperatureMeasurement"
|
||||
attribute = "temperature"
|
||||
|
||||
[[fields]]
|
||||
name = "humidity"
|
||||
component = "main"
|
||||
capability = "relativeHumidityMeasurement"
|
||||
attribute = "humidity"
|
||||
|
||||
[[fields]]
|
||||
name = "mode"
|
||||
component = "main"
|
||||
capability = "airConditionerMode"
|
||||
attribute = "airConditionerMode"
|
||||
|
||||
# Samsung models expose WindFree differently. Inspect the complete device status
|
||||
# and adjust this mapping. Missing mapped fields produce warning/no_data.
|
||||
[[fields]]
|
||||
name = "windfree"
|
||||
component = "main"
|
||||
capability = "airConditionerFanMode"
|
||||
attribute = "fanMode"
|
||||
equals = "windFree"
|
||||
Reference in New Issue
Block a user