Рет қаралды 2,321
A tutorial on how to setup your CBI ASTUTE Smart Switch with Home Assistant and automatically switch if off when there is load shedding using an automation in Home Assistant.
This requires you to have an existing Home Assistant integration with you Inverter
Links:
LocalTuya Github Page - github.com/rospogrigio/localtuya
Home Assistant Tuya Guide - www.home-assistant.io/integra...
My Automation Yaml Code:
description: ""
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.grid_connected_status
to: "off"
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.cbi_switch
alias: New Automation