Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Home Assistant 2022.12.0
#5
[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 }} '


Attached Files Image(s)
   
Reply


Messages In This Thread
Home Assistant 2022.12.0 - by Mandlap - 12-12-2022, 09:31 PM
RE: Home Assistant 2022.12.0 - by admin - 12-13-2022, 07:51 AM
RE: Home Assistant 2022.12.0 - by Mandlap - 12-13-2022, 08:19 AM
RE: Home Assistant 2022.12.0 - by Mandlap - 12-13-2022, 07:12 PM
RE: Home Assistant 2022.12.0 - by admin - 12-13-2022, 10:22 AM
RE: Home Assistant 2022.12.0 - by admin - 12-13-2022, 11:40 PM
RE: Home Assistant 2022.12.0 - by Mandlap - 12-14-2022, 05:51 PM
RE: Home Assistant 2022.12.0 - by admin - 12-13-2022, 11:41 PM
RE: Home Assistant 2022.12.0 - by Mandlap - 12-14-2022, 05:58 PM
RE: Home Assistant 2022.12.0 - by admin - 12-15-2022, 08:02 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)