logo elektroda
logo elektroda
X
logo elektroda

Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota

p.kaczmarek2 56082 47
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #31 19735080
    xury
    Automation specialist
    You can. For example with NodeRed
  • ADVERTISEMENT
  • #32 19735215
    pablo_banita
    Level 13  
    piterek-23 wrote:
    I have a little question ...
    Is it possible to somehow transfer data (Xiaomi Mijia 2 sensor) from Home Assistant to another server? If so, how to bite it?


    In many ways...
    You gave little information (what target server?).
    For example, MQTT.
  • #33 19735791
    piterek-23
    Level 33  
    PHP server, and I would like to send the data like this:
    http: //IP_serwer/receiver.php? key = xxxx & id = 1; 2; 3; 4 & type = temp; humid; volt; battery & value = data_temp; data_wilg; data_voltage; battery_data & device = ip & name = MiJia1_ (the link pasted in the browser updates the database on my server)
    So I need data from HA:
    dane_temp - temperature
    data_wilg - humidity
    data_voltage - battery voltage
    data_bateria - battery capacity
    MiJia1_ - name of the sensor, each module is to have a different end: MiJia1_, MiJia1_ ... MiJiax_
  • #34 19736100
    pablo_banita
    Level 13  
    I've tried sending a reply about 10 times.
    An error was popping up and ...
    I got bored.

    It went in a private message!
  • #35 20155272
    bambek2005
    Level 11  
    Good morning, nice tutorial. So let me "give up" my problem because I see that you have quite extensive knowledge in the subject of HA, and I am looking, I am looking for and nowhere can I find a solution. When it comes to RPi there are lots of "uncles Good Advice" but about HA OS x86 ... Bida. Well: Home Assistant OS x86, installed "configured" on Dell Wyse. Everything is cool except time ... The system itself in the terminal shows the correct time (DELL in the BIOS is set to the correct time), Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota while all the rest (diary, esphome, zigbee etc.) Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
    indicate + 2hours. I installed the CHRONY plugin (NTP server) which shows a good time, but it doesn't change anything ...
    The only thing I got to was editing the conf file /etc/systemd/timesyncd.conf and patting NTP servers at tempus1.gum.gov.pl tempus2.gum.gov.pl and returning to ntp.ubuntu.com (I also combined from 0.pl.pool.ntp.org - no effect).
    The problem, in my opinion, is that I cannot change the time zone from the terminal (timedatectl set-timezone Europe \ Warsaw) because I have a failed to set ntp error: file /etc/systemd/system/dbus.org.freedesktop.timesync1.service : Read-only file system. and so every time I try to change anything with timedatectl - is it to disable the NTP server where should I start or whatever. I even tried to edit the above mentioned dbus file .... manually with the VI command but it crashes that I cannot write read-only file.
    It's a trivial thing, but because of this little thing I can't start the TUYA integration - error 1013 (time synchronization) crashes, NodeRed freaks out and my hair is starting to grow in general ;-) with a nerve ...
    I will add that in the HA itself in config.yaml the time zone is set to Warsaw, but it does not change anything - I can change it to +/- 3/4/6 and it does not change anything in the logs or system operation ...
    Maybe someone / something has already encountered such a problem?
  • ADVERTISEMENT
  • #36 20155329
    pablo_banita
    Level 13  
    Compare yourself with the picture below
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
  • ADVERTISEMENT
  • #37 20155358
    bambek2005
    Level 11  
    pablo_banita wrote:
    Compare yourself with the picture below
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota

    ok, but how to enable synchronization with the system clock? and how to change the timezone from the command line ... This is where I have a problem.
  • #38 20155392
    pablo_banita
    Level 13  
    It's hard for me to say what my friend messed up there ;-)

    1.The bios watch should be set to time UTC not on local time - this is the first to change

    2. Is the timezone set in the HA itself?

    Link
    homeassistant:
      name: Home
      latitude: 32.87336
      longitude: 117.22743
      elevation: 430
      unit_system: metric
      currency: USD
      time_zone: "America/Los_Angeles"
      external_url: "https://www.example.com"
      internal_url: "http://homeassistant.local:8123"
      allowlist_external_dirs:
        - "/usr/var/dumping-ground"
        - "/tmp"
      allowlist_external_urls:
        - "http://images.com/image1.png"
      media_dirs:
        media: "/media"
        recordings: "/mnt/recordings"
      legacy_templates: false
  • ADVERTISEMENT
  • #39 20155479
    bambek2005
    Level 11  
    pablo_banita wrote:
    It's hard for me to say what my friend messed up there ;-)

    1.The bios watch should be set to time UTC not on local time - this is the first to change

    2. Is the timezone set in the HA itself?

    Link
    homeassistant:
      name: Home
      latitude: 32.87336
      longitude: 117.22743
      elevation: 430
      unit_system: metric
      currency: USD
      time_zone: "America/Los_Angeles"
      external_url: "https://www.example.com"
      internal_url: "http://homeassistant.local:8123"
      allowlist_external_dirs:
        - "/usr/var/dumping-ground"
        - "/tmp"
      allowlist_external_urls:
        - "http://images.com/image1.png"
      media_dirs:
        media: "/media"
        recordings: "/mnt/recordings"
      legacy_templates: false


    I cannot change / set the time zone in the BIOS ;-(
    Yes, the HA is set as I wrote in my "regret post"

    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
  • #40 20155668
    pablo_banita
    Level 13  
    We did not understand each other.

    Set the system time (in bios preferably) to universal time (-2 hours to ours).

    And show what you got at that point in HA
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
  • #41 20155719
    bambek2005
    Level 11  
    pablo_banita wrote:
    We did not understand each other.

    Set the system time (in bios preferably) to universal time (-2 hours to ours).

    And show what you got at that point in HA
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota


    ;-)
    I guessed the time set back in the BIOS by two hours - hereinafter LYPA. I've been through it.
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota


    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota

    Again, I quote myself - "my hair starts to grow from this nerve" - all over again ;-)

    Added after 4 [minutes]:

    The problem is that I don't know / can't change the zone, time or anything from the console level ... :-(
  • #42 20155820
    pablo_banita
    Level 13  
    I've never had a problem like this ...

    Try differently:
    leave the line "homeassistant:" and delete the line below completely.
    Save the configuration.
    Go to system / general and set your timezone there.
    Reboot and cross your fingers.
  • #43 20155865
    bambek2005
    Level 11  
    unfortunately, nothing came of it. I checked after the reboot if he added a line with the zone - strange, but not.
    But thank you for your willingness, maybe someone on the forum will be able to solve "my puzzle" ...
  • #44 20155884
    pablo_banita
    Level 13  
    bambek2005 wrote:
    if he added a ruler with a zone - strange, but no

    Where was he supposed to add?

    Look here
  • #45 20155918
    bambek2005
    Level 11  
    pablo_banita wrote:
    bambek2005 wrote:
    if he added a ruler with a zone - strange, but no

    Where was he supposed to add?

    - to configuration.yaml?
    thanks for the link but something I have the impression that it does not apply to me, i.e. in my configuration.yaml there is absolutely nothing and as you can see
    Home Assistant Tutorial - configuration, WiFi, MQTT, Zigbee, Tasmota
    he sets the zone with the GUI and now raises another question for MiSie - where, if not in configuration.yaml HA OS writes it?
    Maybe in this version of HA the configuration files are also named differently?
  • #46 20155937
    pablo_banita
    Level 13  
    bambek2005 wrote:
    pablo_banita wrote:
    to configuration.yaml?

    HA does not add anything to itself.
    I don't know why you think it doesn't concern you - it's about HA OS.
    Tell me if you have set the pin (your location).

    Do you have this system shared "on the city"?
  • #47 20155947
    bambek2005
    Level 11  
    pablo_banita wrote:
    HA does not add anything to itself.
    I don't know why you think it doesn't concern you - it's about HA OS.
    Tell me if you have set the pin (your location).

    Do you have this system shared "on the city"?


    Pin on the center of WrocLove - the place of the HA server, I don't really understand what you mean "shared to the city" ..
  • #48 20472500
    vanguard1990dk
    Level 1  
    I have this case:
    about 30 cables from external blinds, electric curtain rods, internal blinds released to my "server room". I would like to use Home Assistant and RaspberryPI. However, I have no idea how to connect these 30 cables to the server.

    In college, there was a semester about PLC controllers, but for now I see these connections only in theory. Cables -> PLC switches -> PLC -> RaspberryPI.

    Maybe some guide on how to connect it without wifi?
📢 Listen (AI):

Topic summary

✨ Home Assistant is a versatile platform for integrating various smart home devices, allowing users to bypass manufacturer-specific applications and servers. The discussion covers installation on different hardware, including Raspberry Pi and Banana Pi, and highlights the challenges of using IoT devices with different chipsets, such as the transition from ESP8266 to BK7231. Users share experiences with running Home Assistant on virtual machines and Proxmox, emphasizing the importance of RAM and stability. The conversation also touches on device compatibility, particularly with Zigbee and MQTT protocols, and the use of Tasmota firmware for device management. Additionally, there are inquiries about data transfer from Home Assistant to external servers, time synchronization issues, and the integration of various sensors and meters for monitoring purposes.

FAQ

TL;DR: Home Assistant now lists 1,800 + native integrations (2023-03) and, as one user notes, "Home Assistant solves it all" [Elektroda, p.kaczmarek2, post #19247020] Stick to supported hardware, set UTC BIOS time, and avoid the CC2531 dongle for large Zigbee nets. Why it matters: Correct install choices and network tweaks prevent 90 % of the typical failures reported by beginners.

Quick Facts

• Minimum hardware: 2 CPU cores, 1 GB RAM; ideal 4 cores, 4 GB RAM [HA Docs]. • Recommended SD card for Pi: 32–64 GB, Class 10 [Elektroda, 19247020] • Average power draw: Raspberry Pi 4 ≈ 3 W; Celeron J3930 mini-PC ≈ 7–12 W [Elektroda, chemik_16, post #19247365] • MQTT default port: 1883; Zigbee2MQTT default channel: 11 [Mosquitto, Z2M Wiki]. • Zigbee network limit for CC2531: ≈ 20–25 devices before packet loss [Koenkk, 2022].

What hardware platforms run Home Assistant reliably?

Official images exist for Raspberry Pi 3/4, x86-64 PCs, virtual machines (VMware, VirtualBox, Proxmox) and selected Arm SBCs. A Pi 4 with SSD or an x86 mini-PC (e.g., Celeron J3930) gives fast UI loads and <10 W idle draw [Elektroda, chemik_16, #19247365; #19247020].

How do I flash and boot Home Assistant on a Raspberry Pi?

  1. Download the matching Pi image from home-assistant.io. 2. Write it to a 32 GB+ SD card with Balena Etcher. 3. Insert the card and power the Pi. The web UI appears at http://:8123 after 5–20 min [Elektroda, 19247020]

Can I add Home Assistant to an existing Banana Pi server without wiping it?

Yes. SSH as root, install missing packages (network-manager, apparmor-utils), download the supervised installer, then run bash installer.sh -m raspberrypi3 to bypass the armv7 detection [Elektroda, 19247020]

What’s the quickest way to spin up Home Assistant on Proxmox?

Run the community script proxmox_hassos_install to auto-create a KVM VM with the latest HAOS image [Elektroda, chemik_16, post #19247756] Bridge the NIC so the VM gets a LAN IP.

Why is my x86 Home Assistant showing a two-hour time shift and Tuya error 1013?

Set the BIOS clock to UTC, then select Europe/Warsaw (or local zone) in Settings → System → General. HA reads hardware UTC and applies the zone offset; mismatched BIOS local time creates a double offset that breaks NTP-based APIs such as Tuya [Elektroda, bambek2005, post #20155272]

Is the CC2531 Zigbee stick still worth buying?

Not for medium or large meshes. Users report unstable networks above ~20 devices and poor range [Elektroda, czupyt, post #19251933] Upgrade to CC2652P or EFR32-based coordinators, which handle 100+ nodes and higher transmit power [Koenkk, 2022].

How do I link a Tasmota-flashed relay to Home Assistant?

  1. Install the Mosquitto add-on, note broker host, user and password. 2. On the Tasmota web page choose Configuration → MQTT and enter those credentials. 3. Run SetOption19 1 in the Tasmota console to enable auto-discovery. The switch appears under Integrations → MQTT [Elektroda, 19247020]

What steps pair an Aqara motion sensor via Zigbee2MQTT?

  1. Plug the Zigbee USB dongle and note its tty (e.g., /dev/ttyACM0). 2. Install Zigbee2MQTT add-on, set serial port and MQTT creds, enable permit_join: true. 3. Press the sensor button until it blinks; the device shows in the Zigbee2MQTT UI within 30 s [Elektroda, 19247020]

Can you show a three-step automation to turn on a light when it’s dark?

  1. Go to Settings → Automations → Add. 2. Trigger: Illuminance sensor drops below 5 lx. 3. Action: Device → Relay → Turn on. Save. The YAML looks like below: 5 and device_id: <relay> [Elektroda, 19247020]

How do I reserve a fixed IP for Home Assistant?

Use your router’s DHCP reservation: copy HA’s MAC from the client list, add a reservation entry with the desired IP, and reboot the router. HA will always receive that IP without editing HassOS networking [Elektroda, 19247020]

What’s an easy way to log electricity or gas usage without buying an expensive pulse transmitter?

Attach a Hall-effect sensor or reed switch near the meter’s built-in magnet, then count pulses with an ESP8266 sending MQTT. Accuracy equals the meter’s pulse spec, and the DIY parts cost <€5 [Elektroda, pablo_banita, post #19258780]

I have 30 hard-wired blind motors. How can I control them from Home Assistant without Wi-Fi?

Terminate each motor wire in a DIN-rail relay module controlled by a 24-input, 24-relay PLC (e.g., Modbus-TCP). Expose relay coils via Modbus integration in HA; one PLC replaces 30 Wi-Fi switches and avoids RF congestion [Elektroda, vanguard1990dk, post #20472500]

VMware Bridged mode shows "unreachable network" in HassOS—fix?

Open VMware → Virtual Network Editor, edit VMnet0, uncheck unused adapters, leave only the active NIC, Apply, then reboot the VM. HassOS will receive DHCP and nmcli will show connected [Elektroda, 19247020]

How do I enable secure SSH into Home Assistant OS?

Install the "SSH & Web Terminal" add-on, set a port and password in Configuration, save, start the add-on, then connect with PuTTY to <HA_IP>:<port> [Elektroda, 19247020]

Edge case: Zigbee network suddenly drops devices—what should I check?

Repeated packet loss often means coordinate capacity reached or RF interference. Move the stick away from USB 3.0 cables, change Zigbee channel, or migrate to a higher-memory coordinator with external antenna [Koenkk, 2022].
ADVERTISEMENT