12-13-2022, 07:12 PM
[attachment=1672 Wrote: Mandlap pid='5175' dateline='1670919575']
(12-13-2022, 07:51 AM)admin Wrote: try to delete these lines on yaml file:
broker: 192.168.0.118
port: 1883
username: mqtt
password: 1232332TESETEST
Not work yet.
See updated yaml config
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
#frontend:
#themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# mqtt: !include mqtt.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
# Example configuration.yaml entry
switch:
- platform: mqtt
name: 'output-1'
unique_id: output-1
state_topic: 'server/a767350037679/state'
command_topic: 'server/a767350037679/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
binary_sensor:
- platform: mqtt
name: 'input-1'
unique_id: input-1
state_topic: 'server/a767350037679/state'
value_template: '{{ value_json.input1.on }}'
payload_on: 1
payload_off: 0
sensor:
- platform: mqtt
name: 'analog-1'
unique_id: analog-1
state_topic: 'server/a767350037679/state'
unit_of_measurement: 'v'
value_template: '{{ value_json.analog1.value }} '