Last active
January 16, 2024 11:53
-
-
Save AlexxIT/4710065ff219225020207ec2e4a17e56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.mosvodokanal.ru/forpeople/waterquality.php | |
# http://www.mosvodokanal.ru/widget-water.php | |
sensor: | |
- platform: rest | |
resource: http://www.mosvodokanal.ru:10080/webservices/address/qual?code=4 | |
name: mosvodokanal | |
value_template: '{{ value_json.result.dtto }}' | |
scan_interval: '12:00:00' | |
json_attributes_path: $.result | |
json_attributes: | |
- params | |
- platform: template | |
sensors: | |
mosvod_6: | |
friendly_name: Водородный показатель (pH) | |
unit_of_measurement: ед. pH | |
value_template: "{{ state_attr('sensor.mosvodokanal', 'params').6.value }}" |
долго возился, оказывается, если запрашивать HTTP вместо HTTPS, то не работает
ну и порт 10081 теперь, не 10080
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Спасибо. Попробую найти код.