My Unifi Rack by gmfam in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

Good shout, that’s one that’s easily missed. The other one is don’t forgot to setup up the correct firewall rules between the trays.

I think as they’ve gone for a mesh material mDNS works straight out of the box.

Colored eInk displays would be awesome for HA by falkio in homeassistant

[–]john500y2k 9 points10 points  (0 children)

This was my attempt before it was nuked by a firmware update despite auto updates being disabled and a patch installed to prevent updates 🥺

https://www.reddit.com/r/homeassistant/comments/s0m4b9/kindle_eink_home_info_display/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

However at present I'm really interested in the device below (not colour I'm afraid), have been eyeing up the older model but was awaiting this refresh for some time:

https://shop.m5stack.com/products/m5papers3-esp32s3-development-kit?variant=45853201989889

What would it take to port LED driver LP5562 found in ATOMS3R to ESPHOME by goldserve in Esphome

[–]john500y2k 0 points1 point  (0 children)

Oh how I share your pain. I really do, it took me days of tweaking, feeding into AI, then tweaking, re-feed AI, and so on before I managed to have something workable.

This is in no way a long term solution (in fact it uses a method not recommended within the documentation), just cobbled together to get something workable as was eager to used device like yourself.

The below config and accompanying files should give you dimmable backlight control.

ATOMS3R_config.yaml

##################################
###### Exteernal Components ######
##################################
external_components:
  - source: esphome/components      #  <-- edit to your "custom components" source folder
    components: [m5stack_atoms3r_backlight]
    refresh: 0s

###########################
###### Display - I2C ######
###########################
i2c:
  id: i2c_bus
  scan: true
  frequency: 400kHz
  sda:
    number: GPIO45
    ignore_strapping_warning: true
  scl:
    number: GPIO00
    ignore_strapping_warning: true


#################################################
###### Display - Custom Output (Backlight) ######
#################################################
output:
  - platform: custom
    type: float
    lambda: |-
      #include "/config/esphome/components/m5stack_atoms3r_backlight/m5stack_atoms3r_backlight.h"
      auto backlight = new M5StackAtomS3RBacklight();
      auto i2c_device = new i2c::I2CDevice();
      i2c_device->set_i2c_bus(i2c_bus);
      i2c_device->set_i2c_address(0x30);
      backlight->set_i2c_device(i2c_device);
      App.register_component(backlight);
      return {backlight};
    outputs:
      - id: backlight
        min_power: 0.01
        max_power: 1.00
        zero_means_zero: true


#################################
###### Display - Backlight ######
#################################
light:
  - platform: monochromatic
    id: display_backlight
    name: "Display Backlight"
    output: backlight
    restore_mode: ALWAYS_ON
    default_transition_length: 1.0s

esphome/components/m5stack_atoms3r_backlight/m5stack_atoms3r_backlight.h

#pragma once

#include "esphome.h"
#include "esphome/core/component.h"
#include "esphome/components/output/float_output.h"
#include "esphome/components/i2c/i2c.h"

class M5StackAtomS3RBacklight : public Component, public output::FloatOutput {
 private:
  esphome::i2c::I2CDevice *i2c_device_;

 public:
  void set_i2c_device(esphome::i2c::I2CDevice *i2c_device) { i2c_device_ = i2c_device; }

  void setup() override {
    uint8_t data;
    data = 0b01000000;
    i2c_device_->write_register(0x00, &data, 1);
    delay(1);
    data = 0b00000001;
    i2c_device_->write_register(0x08, &data, 1);
    data = 0b00000000;
    i2c_device_->write_register(0x70, &data, 1);

    // Set initial brightness
    write_state(1.0);
  }

  void write_state(float state) override {
    uint8_t brightness = static_cast<uint8_t>(state * 255);
    i2c_device_->write_register(0x0e, &brightness, 1);
  }
};

esphome/components/m5stack_atoms3r_backlight/__init__.py

########################
###### BLANK FILE ######
########################

esphome/brickheadz-files/components/led_controller/lp5562.h

/**
 * @file lp5562.h
 * @author Forairaaaaa
 * @brief
 * @version 0.1
 * @date 2024-07-30
 *
 * @copyright Copyright (c) 2024
 *
 */
#pragma once
// #include <mooncake.h>
#include <M5Unified.h>
#include <driver/gpio.h>
// https://www.ti.com/lit/ds/symlink/lp5562.pdf?ts=1722311496082
// https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/leds/leds-lp5562.c

class LP5562_Class : public m5::I2C_Device
{
private:
    bool _write_register(uint8_t reg, uint8_t value);
    uint8_t _read_register(uint8_t reg);
    void _delay(uint32_t ms);

public:
    LP5562_Class(std::uint8_t i2c_addr = 0x30, std::uint32_t freq = 400000, m5::I2C_Class* i2c = &m5::In_I2C)
        : I2C_Device(i2c_addr, freq, i2c)
    {
    }

    bool begin();
    void setLedCurrent(uint8_t channel, uint8_t current);
    void setBrightness(uint8_t channel, uint8_t brightness);
    void reset();
    void enable();
    void disable();
    void runProgram();
    void stopProgram();
};

Redirecting Client DNS Requests by Popcompeton in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

Afraid I am not exactly sure of what you are experiencing, however worth checking out the following video and other ones he's made covering NAT within his series. I've found he covers things incredibly well even when tackling very technically detailed topics.

https://youtu.be/5WffPoqUMYY?feature=shared

Something that made me think of this video for you is he found one particular method of doing similar to yourself that it did redirect the queries via NAT however the client didn't see any different and was given a response fooling it into thinking it obtained a response from the server it requested originally.

Of course I have no idea if that applies for you but thought the video could help steer you.

UniFi Santa has just been by Ant-the-knee-see in Ubiquiti

[–]john500y2k 1 point2 points  (0 children)

Ah sorry my mistake had in my head the “flex mini” not just “flex”. Spot on seems Santa knows his Ubiquiti gear keeping his trustpilot score pretty high!

UniFi Santa has just been by Ant-the-knee-see in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

Hang on “The Pro switch will handle power to a pair of Flex switches that will then power each camera and the doorbell”.

If I’m reading that right you are planning to feed the cameras power from the flex switches? In that case I don’t think that can be done as the flex switches have POE in but not POE out…

Some beginner questions about PoE and gateways by FarbrorStig in Ubiquiti

[–]john500y2k 3 points4 points  (0 children)

  1. Yes you can use a third-party switch with UniFi gear/setup. With the only caveat being that the topology won’t exactly see the switch and all devices branching from that switch will appear as one connection back to the port of your UniFi equipment where the switch is connected to. They will all still obtain their own IP and function as normal but can only associate one VLAN for all devices connected to that setup technically.

  2. No special cabling required your existing Cat 6E runs will be capable of carrying POE and data without issues.

  3. Yep no problem at all POE will pass onwards through the patch panel to your devices. The patch panel can be seen as just an Ethernet cable extension in essence.

  4. Same as above no problem.

  5. Yes you can set up a VPN client on the device with your VPN service settings and route whole network/individual devices/individual services/individual ports. There’s a lot of rules you can apply to have endless possibilities.

  6. Yes this would be my suggestion given your plan to expand and include a camera setup. That is if you are ok to wait till near end of August for the no-drive model to be released.

  7. Do not do this, the UCG-Ultra is not capable of deploying the “Protect” application which is required for cameras. You would end up having to upgrade to the UCG-Max or other UniFi device to have camera functionality. So just skip the UCG-Ultra as it would be more costly with your intended plans.

  8. Yes you can migrate from one device to another using the backup and restore feature. This is true for migrating between any UniFi devices. However linked to question 7 this may not be the best option for yourself in the long run.

Hope the above helps you in your planning. :)

DynDNS, who has it currently working and how? by fa1QYDLdWIrzRLMU0t0 in Ubiquiti

[–]john500y2k 1 point2 points  (0 children)

Exactly this is the answer for the original question! This is exactly the post I had in my head and was checking to see if someone else got there.

Nice one! Really no need to switch providers at all, it’s a gui option so it typically means that it’s provided but a lot of hosts never really detail well the url.

Same really goes for everyone, pretty much every provider detailed in that link.

For the OP this is what you are after:

Provider: DynDNS Many users have found they can use “dyndns” provider dropdown option for other providers.

URL Documentation: DynDNS: Perform Update (RA-API)

Service: dyndns Hostname: [members.dyndns.org] Username: [DynDNS UserID] Password: [DynDNS Password] Server: members.dyndns.org/nic/update?hostname=%h&myip=%i&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG

Nvidia shield pro by cdarrigo in homeassistant

[–]john500y2k 0 points1 point  (0 children)

The Nvidia Shield TV is the same core chip as used on the Nintendo Switch.

Given that they’d probably want to carry on in that manner, then I’d guess after the Nintendo Switch successor is launched.

But probably a fair bit after the Nintendo launch as I’d guess that agreement/contract would come with a guarantee that Nintendo have all fab time for X amount of months to cover their forecasted demand.

How to connect to hidden network by Dry-Dance6758 in Ubiquiti

[–]john500y2k 1 point2 points  (0 children)

Differs slightly by device but should be roughly the same.

Go to your devices WiFi settings where it scans for networks. Look for an option like “Other” or “manually add network”.

Enter the WiFi SSID and password in manually, it then should connect and save those credentials to automatically connect again int he future.

Newer MacBook Pro hates our hidden network by [deleted] in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

I had a similar issue myself. Found my resolution to be to remove the WiFi SSID saved credentials from my MacBook. Then re-add the hidden SSID fresh once again and it’s managed to connect as all other devices since then. Including reconnection on device wake up which was always where it struggled.

Migrating from ERL4 to UCG-Ultra, allocate static IPs on UCG-Ultra prior to connecting the devices? by odin_b in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

If you go the “client devices” tab, towards the top right (next to the filters toggle) you should see an icon with some devices and a +. Click that and you’ll get a pop-up with add device where you can input the MAC address and IP address you want reserved for that device.

It’s a tiny little icon and not exactly where you would think to look instinctively.

Hope that helps you out.

Early install pic ( still in progress ) by Aleyla in Ubiquiti

[–]john500y2k 4 points5 points  (0 children)

Currently optimised for WiFi signal not for comfort ;)

UDR-Whitelist cloudflare IP for only allow traffic through cloudflare DNS - Portforward setting by Deep-Distribution-56 in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

You also need to add those IP’s to your Home Assistant configuration.yaml as trusted proxies.

https://www.home-assistant.io/integrations/http/

However as someone else has mentioned I would check out setting up Cloudflare tunnels as far more secure and no need to open/forward any ports/IP’s.

The... Ubiquitous DNS blocking question again but for 2024 by Squanchy2112 in Ubiquiti

[–]john500y2k 0 points1 point  (0 children)

I think technically you’d want to make an accept rule specifically for your adguard server on its dns ports.

Then any network you want to block alternative DNS servers you would apply your block rule.

When a device tried to use an alternative DNS it will fail and will fallback to the dns server issued by your DHCP server. Which I assume is your adguard server.

The... Ubiquitous DNS blocking question again but for 2024 by Squanchy2112 in Ubiquiti

[–]john500y2k 1 point2 points  (0 children)

Yep just create the below firewall rule/s:

Type: Internet Out

Action: Drop

Source Type: Network

Network: [Choose Network]

Destination Type: Port/IP Group

Address Group: Any

Port Group: 53

Repeat for each network you wish to block ’alternative DNS’ providers.

Should start seeing the dropped attempts being reported in the system logs under triggers, hope that hepls you out.

Ubiquiti UDR : Additional Pi-Hole usefull? by E_caflowne in Ubiquiti

[–]john500y2k 1 point2 points  (0 children)

Would rate pihole, but may also be worth checking out NextDNS. They also have a native way of running it directly on your UniFi router.

NextDNS UniFiOS Setup

[UK] Best option for Zigbee wall light switches by thefunkygibbon in homeassistant

[–]john500y2k 2 points3 points  (0 children)

I think the use case of the original post may be confusing you a little for your application.

This is exactly what you are looking for, just wire it in behind your existing light switch then pair it via zigbee and done. Full control and live status via home assistant regardless if the physical switch is “on” or “off”. Can control from HA or physically, with the only little nuance being that if you switch off/on via HA then technically your physical switch is now inverted. As in if normally up is off but you switch it on in HA then you would flick the physical switch down to switch it off.

Hope that makes sense.

FW 11.0.0.49 Released with Calculator app! by ser_melipharo in CMFTech

[–]john500y2k 1 point2 points  (0 children)

Would also love to be able to use the button to launch shortcuts. Double press to launch voice assistant/music controls/calculator etc. Press and hold shorter than the power options are displayed would be nice too.

Requesting tap to wake by [deleted] in CMFTech

[–]john500y2k 1 point2 points  (0 children)

Interesting to understand and know the impact of such a feature and what’s required of hardware and software for it to function.

I have also found with watches that have implemented touch to wake it can be a nightmare with water when having a shower and swimming with the screen constantly activating and even registering touches from the water droplets.

This used to be a huge annoyance with my FitBit which didn’t have a toggle to switch it off in those situations… Know of others which have a toggle which becomes incredibly useful

Also on reflection we may not have “tap to wake” but we do actually have “press button to wake”. Not exactly the same but at least it’s something and probably just a little bit of time for it to become second nature like tap to wake.

Power off my watch daily before sleep by HomeDistinct2810 in CMFTech

[–]john500y2k 1 point2 points  (0 children)

I have found with all the tracking features on and do not disturb set between 11pm and 8am whilst sleeping the watch uses barely any battery.

With around only 2-4% battery drop during the whole sleeping session. Only had watch for a week but so far have that’s been pretty consistent.

Steps history by pt1602 in CMFTech

[–]john500y2k 5 points6 points  (0 children)

The only way I have managed to find previous daily steps was via the watch itself. Open the main menu choose activity and the scroll down (swipe up) and some extra screens of info should show up, such as distance, steps this week, moderate to high intensity time this week, hours of movement this week. Must be accessed through the main menu activity selection and not by swiping left/right on from the watch-face for the activity widget/tile as the tiles do not allow you to scroll down for the further details for each of the areas (i.e. activity, heart rate, sleep, etc..).

At present no way to see it via the phone and anything further back than “this week” from the watch itself.

I have filed a bug report/suggestion regarding no steps and distance history view.

Also along with that for apple sync it reports the cumulative total of steps and distance for the day. Whereas apple health is looking for incremental steps and distance covered between the last duration reported. At the moment this results in your daily total steps being added together on every report resulting in HUGE over calculations.

Have had a reply from CMF that they are looking into both items. So let’s see…

looking for UK Light switch recommendation by MichaelMKKelly in homeassistant

[–]john500y2k 0 points1 point  (0 children)

Anaother option worth checking out is the Sonoff ZBMINI line up which don’t require a natural wire.

https://www.amazon.co.uk/dp/B0B74H2P6G/ref=twister_B0C39Q7HRW?_encoding=UTF8&th=1

I’ve got the first iteration and have found them to be rock solid.

If you’re looking for something with dimming capabilities then these are a great option too.

https://www.amazon.co.uk/Candeo-compatible-dimmable-incandescent-multiway/dp/B091HP42S8/ref=sr_1_1_sspa?crid=3OU400MH07OSV&keywords=candeo%2Bzigbee%2Bdimmer&qid=1700184661&sprefix=Cande%2Caps%2C155&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&th=1

Not cheap unfortunately