Add languages for code blocks

WofWca 2019-05-12 19:30:17 +08:00
parent 26d89a245e
commit ad51412de9
1 changed files with 3 additions and 3 deletions

@ -130,7 +130,7 @@ This can also be done manually in Home Assistant UI through Developer tools - ![
```
### Tip: Make all Tasmota devices report their firmware version
```
```yaml
# Example automations.yaml entry
- id: 'sonoff_firmware_installed'
alias: Sonoff Firmware Installed
@ -146,7 +146,7 @@ This can also be done manually in Home Assistant UI through Developer tools - ![
```
Then you can make a sensor that detects the latest version of Tasmota and alerts you if there is an update.
From my configuration.yaml
```
```yaml
# Tasmota Firmware
# Getting Firmware from JSON for Tasmota
- platform: rest
@ -179,7 +179,7 @@ binary_sensor:
Note the above is for 2 switches.
In customize.yaml
```
```yaml
binary_sensor.sonoff_update_available:
friendly_name: Update Available Sonoff
device_class: problem