| 1 |
language: th |
| 2 |
responses: |
| 3 |
intents: |
| 4 |
HassGetWeather: |
| 5 |
default: |
| 6 |
"TODO: {% set weather_condition = {\n 'clear': 'and clear',\n 'clear-night':\ |
| 7 |
\ 'and clear',\n 'cloudy': 'and cloudy',\n 'exceptional': 'and exceptional',\n\ |
| 8 |
\ 'fog': 'with fog',\n 'hail': 'with hail',\n 'lightning': 'with lightning',\n\ |
| 9 |
\ 'lightning-rainy': 'with lightning and rain',\n 'partlycloudy': 'and partly\ |
| 10 |
\ cloudy',\n 'pouring': 'and pouring rain',\n 'rainy': 'and raining',\n\ |
| 11 |
\ 'snowy': 'and snowing',\n 'snowy-rainy': 'with snow and rain',\n 'sunny':\ |
| 12 |
\ 'and sunny',\n 'windy': 'and windy',\n 'windy-variant': 'with wind and\ |
| 13 |
\ clouds'\n} %} {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit')\ |
| 14 |
\ }} {{ weather_condition.get((state.state | string).lower(), \"\") }}\n" |