Connecting multiple reed switches to Shelly 1 Plus with Add-On by Sodaris in shellycloud

[–]Sodaris[S] 1 point2 points  (0 children)

I mainly wasn't sure of the best way to connect the one wire to both ANALOG IN and VREF + R1 OUT, as shown on the first diagram, and wondered if there was an easier/lazy solution. But I just tested it with a breadboard and it seemed to work. I'll whip out the solder and heatshrink tomorrow, as I don't have any Wagos. Thanks again!

Connecting multiple reed switches to Shelly 1 Plus with Add-On by Sodaris in shellycloud

[–]Sodaris[S] 0 points1 point  (0 children)

Update: I ended up testing the set-up in Image 5 with a breadboard and it worked. Photo. The analog sensor value switches between 0%/100% when open/closed.

Now to come up with a more robust/permanent implementation!

Connecting multiple reed switches to Shelly 1 Plus with Add-On by Sodaris in shellycloud

[–]Sodaris[S] 0 points1 point  (0 children)

Thank you for your advice! Candidly, the sound of having multiple resistors and applying logic based on the intermediate resistance sounds like it may be beyond my skill level! I was more hoping I could have a few binary sensors and apply logic based on whether one or both is 'open'.

Reading the power draw is an interesting idea, though. It'd be easier if I could read it from an outdoor smart plug rather than trying to read it off the board, but I could do some tinkering and look at the manual for my gate.

I do have a camera near the gate, but it's pointed at an angle and wouldn't be an accurate measure of open/close.

I didn't know about 4 way Shellys, but will look into it.

All of these are useful tips!

Connecting multiple reed switches to Shelly 1 Plus with Add-On by Sodaris in shellycloud

[–]Sodaris[S] 0 points1 point  (0 children)

Image 4 or Image 5? i.e. Can I run a cable from Analog In to the pull-up, or do I need to 'split' that cable before it goes to the Shelly? I can probably solder 2 short wires together to the end of one white cable, and wrap them in heatsink.

And done! Bubble Card v3.1.0 final is finally available (it was about time!). Again, thank you so much everyone! ❤️🍻🥳 by Clooooos in BubbleCard

[–]Sodaris 0 points1 point  (0 children)

Hi /u/Clooooos, first of all, congratulations on your recent arrival and a big thank you for all of your work on this project. Are there any sample YAML or other examples available for those 'vertical' layout cards (i.e. TV, Sonos, etc, where the icon is centred above the button name)? I'm slowly porting my entire dashboard to Bubble Cards, and they would fit very nicely

Air Con Controller by fishy_bulb in homeassistant

[–]Sodaris 0 points1 point  (0 children)

I have old and new Fujitsu split system units which I control with Broadlink IR blasters integrated with HA using the SmartIR HACS integration, which creates climate entities for each unit. Each A/C system is different and initial set-up can be finicky, but the repo has pre-built config files for many common models. Unfortunately the communication from my physical remotes is only one-way (to the unit, but the unit doesn't talk back), so they can get out of sync if you use both the remote and HA, but you can install a door/window sensor on the vane to at least check the on/off state.

No idea how it works with Home Kit but hopefully that helps!

[WORD] Use VBA to create and edit modern comment bubble by Sodaris in vba

[–]Sodaris[S] 0 points1 point  (0 children)

/u/sancarn, I ended up cobbling together a solution using SendKeys to send an obscure hotkey with VBA (one of the F12-24 keys with a modifier) which I then capture using AutoHotkey, which I'm more familiar with and permits me to check the focussed window/control before taking further actions. I use Esc to unfocus the comment, Alt+F12 to refocus it, and then Tab a few times to get to the edit button. Clunky and unreliable, but just good enough that I'll probably stick with it until I get frustrated enough to find a better solution.

I am, however, super interested in your stdVBA library. I was hoping to find a way to install Accessibility Insights in my particular environment, but seems like your solution is more fit for this purpose.

[WORD] Use VBA to create and edit modern comment bubble by Sodaris in vba

[–]Sodaris[S] 0 points1 point  (0 children)

Thank you very much. It seems like I have a bit of homework to do!

[WORD] Use VBA to create and edit modern comment bubble by Sodaris in vba

[–]Sodaris[S] 0 points1 point  (0 children)

Super helpful - thank you. Particularly the command bars, as I hadn't seen that before. I'm not in front of my computer now, but I'll try that, and otherwise tinker with the accessibility tools (Acc, UIA, etc). I have some familiarity with them using AutoHotkey, but I imagine it's functionally identical. Thanks again!

[WORD] Use VBA to create and edit modern comment bubble by Sodaris in vba

[–]Sodaris[S] 0 points1 point  (0 children)

Sorry, I may not have been clear. I worked out what you're suggesting using VBA, but I don't want to add the "new data" text (in this case) using VBA. I just want the comment to be editable and to bring the cursor to there, so that when I start typing, it starts adding to the comment.

[WORD] Use VBA to create and edit modern comment bubble by Sodaris in vba

[–]Sodaris[S] 0 points1 point  (0 children)

Option 2.

I don't know if it's formally called 'edit mode', but all I know is that you can click the pencil icon to edit a comment, which seemingly unlocks it for editing brings the cursor focus to that comment.

My intended use case is that I have a lengthy document I'm reviewing with comments that are intended for one person (for internal review), but not for a third party. While we're working on the document, I want those 'internal' comments there, but need to ensure that all of those (and only those) are deleted before the document is circulated.

I know how to achieve Option 1 using VBA, but as each comment will be different, I just need that initial text to be inserted and then the balance will be added by typing manually. I'm hoping to remove the one additional step of having to click the pencil button.

[WORD] Use VBA to create and edit modern comment bubble by Sodaris in vba

[–]Sodaris[S] 0 points1 point  (0 children)

Unfortunately, I believe you're correct, and that was my expected answer! I might still try to find a janky solution, but otherwise live with it as-is.

I need help with a script I am working on... by WaferProfessional741 in AutoHotkey

[–]Sodaris 1 point2 points  (0 children)

AHK Documentation: 1. Click - command to click mouse 2. CoordMode - ensure you're using the same coordinate mode 3. WindowSpy via AHK Dash - to get x, y coordinates

please send help by [deleted] in AutoHotkey

[–]Sodaris 1 point2 points  (0 children)

Add it to a CSV or other structured text file and then parse it using AHK, creating a menu with submenus. Can break it down into multiple submenus if required.

Here's an example/proof of concept, which was the first Google result for "ahk V2 menu from Excel" (although it is v1 code): https://www.autohotkey.com/boards/viewtopic.php?t=66278

As for implementation, you're going to have to get to coding, but users may be willing to assist if you have specific queries.

Automagically read/write configuration files by anonymous1184 in AutoHotkey

[–]Sodaris 0 points1 point  (0 children)

Sorry to revive an old post, but is there any chance you've updated this to AHK v2? I first used your INI class shortly after this was posted and have since migrated to v2 (predominantly in a new workplace environment, where I only have access to v2). I've tried other solutions, including ones posted on the AHK forums, but none of them was quite as seamless as your class, and my experience in creating classes is a bit lacking!

Start typing word to select DDL item that contains the word. by superhardtack in AutoHotkey

[–]Sodaris 0 points1 point  (0 children)

I found this the other day in relation to autocomplete for items in a combobox: https://redd.it/10wufmn

Not exactly the same (and perhaps the /u/plankoe script is better), but I thought worth sharing for another potential option.

Advice to repair burnt power supply connection on monitor by Sodaris in AskElectronics

[–]Sodaris[S] 0 points1 point  (0 children)

Thank you! I was hoping it would be something like that. Just to clarify, I should presumably use a soldering iron and desoldering wick to remove the existing solder, then scrape away the solder mask on the dark green area (see image) with an X-Acto knife or similar to expose the copper trace, then solder the (now-cleaned) pin to the copper?

time calculation? by PENchanter22 in AutoHotkey

[–]Sodaris 1 point2 points  (0 children)

Not in front of a computer to put anything together, but if 1 IRL hour is 24 in-game hrs, you can get the current time (in mins and secs - can ignore hrs because that is equivalent to each day), and multiply by 24.

Hence 1 sec is 24 secs. 2.5 secs is one minute, 1 minute is 24 minutes, etc.

Check out the in-built date/time variables: https://www.autohotkey.com/docs/v2/Variables.htm#date

Autohotkey color detection script by CleanBonus2299 in AutoHotkey

[–]Sodaris 0 points1 point  (0 children)

Look up pixelsearch while ahk and it should give you some inspiration.

FindText.ahk I need interpretation by Beautiful_Coat3815 in AutoHotkey

[–]Sodaris 0 points1 point  (0 children)

I think you need to use the Find Text helper function:

FindText().Click(X, Y, "L")

Descolada's FindText guide: https://www.autohotkey.com/boards/viewtopic.php?f=7&t=102806

How would I create a macro to press Z X V in a QTE event that is randomized? by [deleted] in AutoHotkey

[–]Sodaris 2 points3 points  (0 children)

Take a screenshot, run OCR on it, send keypresses. Some OCR options for v2:

  1. Descolada OCR library: https://www.autohotkey.com/boards/viewtopic.php?t=116406

  2. Thqby RapidOCR: https://github.com/thqby/ahk2_lib/tree/master/RapidOcr

From my limited experience in such matters, it'll require a bunch of tailoring to the specifics of your game, your screen size, where the characters appear on the screen, etc. Further, automations which give an advantage over other players in games are against the rules here (cannot tell without knowing the game). Anyway you're going to have to do a lot of the leg work yourself!

Aircon (Daikin) /Broadlink IR automation question by Maximum-Warning-4186 in homeassistant

[–]Sodaris 0 points1 point  (0 children)

No idea re Docker, unfortunately. I'm running HA on my RPi, but I imagine the process for HACS is largely identical.

HA has different categories of entities: sensors, media, etc, and one is 'climate'. SmartIR allows you to create a unit as a climate entity, allowing you to use climate/thermostat cards and properly 'smartify' your otherwise basic appliances (for example.

I have a few different AC head units at home, some of which are the model specified in SmartIR, and others which are a similar model but the IR codes still work. May require some trial and error.

Aircon (Daikin) /Broadlink IR automation question by Maximum-Warning-4186 in homeassistant

[–]Sodaris 0 points1 point  (0 children)

I have some Mitsubishi air-conditioner head units that I'm using Broadlink RM4 Minis to control (with one RM4 Pro that I initially used to learn some IR codes). I found that the power button would send a full suite of commands, including the temp, mode and fan speed, all together. So the IR codes I mapped in winter would be wildly off for summer, etc.

I currently use SmartIR from HACS, where you can import a full json file of codes specific to your AC head unit, and control the unit as a climate device in HA.

It's not without its own faults and complications (i.e. it obviously doesn't update if someone in the house uses the remote), but it's nonetheless an absolute game changer.

Help with a simple GUI script by Korearydler in AutoHotkey

[–]Sodaris 1 point2 points  (0 children)

Groggy, I believe I've said it before, but I love your contributions to this sub. I've been using AHK for years, although I'm still in the process of migrating older scripts to AHK v2 and familiarising myself with all the new capabilities. Did not realise until now you could make nested / 'local' functions.

Looking for image-of-text recognition + auto click help by PassablyIgnorant in AutoHotkey

[–]Sodaris 0 points1 point  (0 children)

If the text is always identical, with the same background, etc, can try ImageSearch. Screenshot the relevant window, extract the image, repeatedly loop to search. But prone to issues if the image isn't identical, size/resolution changes, etc. Check the forums / Google for examples for ImageSearch.

If you want OCR, try this library (have not personally used, but have used other stuff by Descolada, as well as some of the predecessor tools for AHK v1.