Hi all,
next newbie question…the 1st sensor - an Xiaomi/aqara humidity sensor - arrived.
So I wanted to install the integration “zigbee2mqtt” via Hassio–>Integrations in the frontend.
There is no such Integration…is there any other way than importing code from GitHub?
I am used (now) to modify the configuration.yaml file.
But including code from Github seems more complicated…where is maybe a manual for getting code /files from GitHub to the Rasperry Pi?
Can anyone give me a hint, what is the easiest way to include the Xiaomi/Aqara Humidity Sensor?
Ok,
I managed to add the github repository by including the path
“https://github.com/danielwelch/hassio-zigbee2mqtt”
at the Add-on fron end.
Finally the Add-on is installed after the 2 additional add-ons showed up.
I installed only the “zigbee2mqtt” add-on .
But the add-on can’t be started by clicking on START.
So I thought to add the following code to the config file incl. the default path:
/share/zigbee2mqtt
My config:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
media_player:
- platform: yamaha_musiccast
host: 192.168.1.84
port: 5005
# Example configuration.yaml entry
sensor:
- platform: template
sensors:
solar_angle:
friendly_name: "Sun angle"
unit_of_measurement: 'degrees'
value_template: "{{ state_attr('sun.sun', 'elevation') }}"
sunrise:
value_template: "{{ state_attr('sun.sun', 'next_rising') }}"
- platform: mqtt
state_topic: "owntracks/Sensor/lg6"
name: "Batterie_jo"
unit_of_measurement: "%"
value_template: '{{ value_json.batt }}'
device_class: battery
- platform: mqtt
state_topic: "owntracks/Sensor/hw6"
name: "Batterie_ja"
unit_of_measurement: "%"
value_template: '{{ value_json.batt }}'
device_class: battery
input_boolean:
zigbee_permit_join:
name: Allow devices to join
initial: off
icon: mdi:cellphone-wireless
timer:
zigbee_permit_join:
name: Time remaining
duration: 600 # Updated this to the number of seconds you wish
sensor:
- platform: mqtt
name: Bridge state
state_topic: "zigbee2mqtt/bridge/state"
icon: mdi:router-wireless
automation:
- id: enable_zigbee_join
alias: Enable Zigbee joining
hide_entity: true
trigger:
platform: state
entity_id: input_boolean.zigbee_permit_join
to: 'on'
action:
- service: mqtt.publish
data:
topic: zigbee2mqtt/bridge/config/permit_join
payload: 'true'
- service: timer.start
data:
entity_id: timer.zigbee_permit_join
- id: disable_zigbee_join
alias: Disable Zigbee joining
trigger:
- entity_id: input_boolean.zigbee_permit_join
platform: state
to: 'off'
action:
- data:
payload: 'false'
topic: zigbee2mqtt/bridge/config/permit_join
service: mqtt.publish
- data:
entity_id: timer.zigbee_permit_join
service: timer.cancel
hide_entity: true
- id: disable_zigbee_join_timer
# alias: Disable Zigbee joining by timer
hide_entity: true
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.zigbee_permit_join
action:
- service: mqtt.publish
data:
topic: zigbee2mqtt/bridge/config/permit_join
payload: 'false'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.zigbee_permit_join
But after restart of HA the rasperry is not available.