This commit implements automatic enabling of Tasmota rules when they are defined in the configuration. Key changes: - Modified TasmotaManager.py to detect rule definitions and automatically send enable commands - Updated network_configuration.json to remove redundant Rule1 entry - Updated documentation in README.md and CONSOLE_COMMANDS.md to explain the new feature - Added test script to verify the automatic rule enabling functionality This change simplifies the configuration by allowing users to define rules without needing to explicitly enable them with a separate command.
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"unifi": {
|
|
"host": "https://192.168.6.1",
|
|
"username": "Tasmota",
|
|
"password": "TasmotaManager12!@",
|
|
"site": "default",
|
|
"network_filter": {
|
|
"NoT_network": {
|
|
"name": "NoT",
|
|
"subnet": "192.168.8",
|
|
"exclude_patterns": [
|
|
"homeassistant*",
|
|
"*sonos*"
|
|
],
|
|
"unknown_device_patterns": [
|
|
"tasmota_",
|
|
"esp-",
|
|
"ESP-"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"mqtt": {
|
|
"Host": "homeassistant.NoT.mgeppert.com",
|
|
"Port": 1883,
|
|
"User": "mgeppert",
|
|
"Password": "mgeppert",
|
|
"Topic": "%hostname_base%",
|
|
"FullTopic": "%prefix%/%topic%/",
|
|
"NoRetain": false,
|
|
"console": {
|
|
"SwitchRetain": "Off",
|
|
"ButtonRetain": "Off",
|
|
"PowerRetain": "On",
|
|
"PowerOnState": "3",
|
|
"SetOption1": "0",
|
|
"SetOption3": "1",
|
|
"SetOption13": "0",
|
|
"SetOption19": "0",
|
|
"SetOption32": "8",
|
|
"SetOption53": "1",
|
|
"SetOption73": "1",
|
|
"rule1": "on button1#state=10 do power0 toggle endon"
|
|
}
|
|
}
|
|
} |