Home Synchronize

1 view
Skip to first unread message

Marianna

unread,
Aug 5, 2024, 10:56:27 AM8/5/24
to teporphade
TheSynchrony HOME Credit Card is accepted at all Synchrony HOME Partner locations. We have partners in home categories including furniture, mattresses, electronics & appliances and more. To find Synchrony HOME Partners, check out Synchrony HOME retailers or visit our store locator to find locations near you.

For Synchrony HOME Partners that accept the card online look for the option to pay with a Synchrony HOME Credit Card on the payment page. Enter your Synchrony HOME Credit Card account number when prompted.


The promotional summary box on your monthly statement will clearly show the balance for each promotional financing purchase and corresponding expiration date. You can always choose to pay off your promotional balance earlier as well.


Thanks for the blueprint.

I wanted to use the blueprint to sync the status of my media player with an input_boolean so that I could turn the TV on and off via google home.

Unfortunately, a media player has more states than just on and off (unavailable, playing, unknown) so that error messages keep popping up in the log.


Hello,

Im having an issue. Im not sure if its the blueprint or my setup. I have a Tuya 4 touch switch with the Tuya integration controlling 2 light groups (consisting of 2 bulbs each using Tuya integration) and 2 broadlinks controlling 2 A/Cs. The switches with the devices are out of sync. Seems that sometimes it gets out of sync when I use Alexa to control the devices instead of the switches, but not all the time. I can ask Alexa to turn the A/C on and the switch turns on, but not all the time. Also if Alexa turns off the light the switch can stay on and after some time the lights turn back on. Im guessing its syncing the lights to the switch and turns it on instead of turning the switch off. Any ideas? Thanks.


If it matters both devices are Z-Wave (for now; the light at the top is an addressable LED strip, eventually to be turned into an ambient data display via MQTT probably, but for now I just want to control it by switching power on and off). Anyway, the future extension I have in mind is why I want to do this with an automation rather than Z-wave direct association etc.


I have some recessed lights that are in the ceiling 2 next to each other. Unfortunately some lights come on without being triggered. Always on by the way, never off or any other change.

Could I use this template to check each pair and if 1 is of, to also switch the other off?

How would I do this?


I have recently setup Ubuntu ldap client authentication on karmic and lucid desktop clients and the ldap server is running on an 10.04 LTS server and this is the link I followed for client setup and probably this also works for 11.04. I could able to login to clients with the ldap user accounts and also, on the clients I used an entry session required pam_mkhomedir.so umask=0022 skel=/etc/skel in pam.d/common-session to automatically create the home directory on client computers when the user logs in for the first time. I guess there would be a way to synchronize the home directory from Client to Server and vice-versa so that users have their documents on which ever the client they login to.


Anybody has any trick to do this or with any other way so that I can login to clients with both ldap and local user credentials having the home directory synchronized for ldap users?. I know many masters are here, how one would do this with their style?.


It feels no way other than changing the local user's home directory on clients and auto-mounting the home directory in autofs but the same local admin user on clients which I am aiming to secure is also available as user accounts on server(admin, guest)...


I compromised just moving(usermod -m -d /local-home/admin admin) the already existing local user accounts to different home directory and then I setup automount for home on client. Again I fell into problem, once the client is authenticated by ldap, it's not fetching the home documents from server but works only if I manually mount it(mount ldapserver:/ldaphome/test /home/test) on the client. The client is karmic...


I shared ldaphome at the server(192.168.1.2). Now the problem is I have /home as a separate partition on client and I unmounted it in fstab and mounted it with ldaphome which you could see in autofs config. When I try to login with ldap, after successful authentication, it again takes to the login screen. When I stop autofs service, it normally logs in creating the home directory as I used session required pam_mkhomedir.so umask=0022 in pam.d/common-session.


I commonly use option #1 and create /local then setup my local accounts to have home directories there such as /local/admin, /local/sysadmin, /local/joe, etc. I then use autofs to control mounting of centralized/remote home directories under /home much in the same way you're describing in "Update 3".


I presume your server is exporting home directories with NFS? If manually mounting the NFS export on the client works as expected but autofs does not, your problem is almost certainly your autofs configuration.


Have you looked at pam_mount? That is what I am currently using although my use case is slightly different than yours. This blogpost gives a fairly good overview of the process, it is geared towards a SAMBA server but if you ignore the samba specific parts it works with NFS (that is what I use) and will work with 10.04. I have not tried on 11.04.


I had to create or copy home directory of ldap users under ldaphome which I have shared on server via nfs and I didn't expect at all that this should be the cause. I thought user's home directory will be created automatically under ldaphome when the user logs in at the client for the first time. I did the following things and every user is easily authenticated and automouted their home directory with no error message prompting and I think the entry session required pam_mkhomedir.so umask=0022 not at all needed:


As I'm the beginner of this setup on linux based in real time use, I'm verymuch concerned that how the performance would be with NFS on the server asmany users login and mount at a time. I don't know other way ofdoing this if any which has less load towards server or which provesto be best in performance. If there is any I'm very much interested tohear from anybody.


I completely changed the trigger so it should have only triggered if the state changed from/to on/off but I continued to have the error, even though the automation trace suggested the automation had not triggered. Very strange but thank you for confirming you were able to resolve the issue.


With this blueprint you can now select any combination of lights, switches, or other devices which support the homeassistant.turn_on/homeassistant.turn_off service calls. This also addresses the repair errors on startup.


Is a set of 8 sonoff switches connected via the automation.

Sometimes it happens to me that they start on/off very quickly and cannot stop it. I have to open home assistant, enter in the edit page of the automation, DISABLE the automation.

At that point after few secs everything is stable and I can put it on again.


The way we used to deal with this in the old days is that an event would come in with a timestamp that says when it was initiated. This is a little different from time_fired (which we do have), since an event that is triggered by another event would inherit the initiated time from the previous event. If a device already processed a later event it would ignore older ones. This means that the state object needs to store the initiated time, which is different from the last_updated and last_changed that we already have. To apply that to our example:


I have three computers at home, and would like to have the /home/ folder tree synchronized between the three.

Any files/folders (except those hidden) that are modified/added/removed in one of the three computers is updated in the other two.


Unison - as mentioned by others, this is run manually, but is very fast, reliable and effective. Requires both machines being synchronised to be on at the same time. It has a nice user interface to allow you to deal with the almost inevitable conflicts, and tracks and propagates deletions correctly. The graphical app/package is called unison-gtk.


OwnCloud - Cloud storage run on your own server. You'll need a machine to leave on. Requires a reasonable amount of setup. Runs a full Apache 2 webserver and an SqlLite or MySQL database on the server. Works similar to Dropbox with a desktop client, but the server is under your control. edit : OwnCloud has recently gone through some changes in how the project is run, and now has a new fully open source (ie no closed source 'enterprise' edition) under the guise of NextCloud, (see this youtube interview with the original OwnCloud developer for more details).


Seafile - Provides a server component you can install on a local machine. Seafile uses a data model similar to git for tracking changes. Provides sync clients for desktops, tablets and smartphones. A blog post describing setup can be found at -and-configuring-seafile-on-ubuntu-12-dot-04/


Osync - "... bidirectional file synchronization tool written in bash and based on rsync. It works on local and / or remote directories via ssh tunnels. It's mainly targeted to be launched as cron task" (text from the website)


Rsync - fast and effective and been around for decades, however it doesn't keep a history so you have to choose a direction to decide whether a file is new or deleted. Graphical tools are available such as gwRsync.


BitTorrent Sync (freeware) - peer-to-peer file sync based on BitTorrent. I don't know much about this as I won't be using it due to it not being open source and not trusting it to keep my data within my LAN, feel free to edit this answer with better information / real experiences.


Commercial hosted services such as dropbox, ubuntu one, google drive, apple iCloud are all quick cheap and convenient, however they all require trusting a company with all your data, and need a reasonably fast internet connection.

3a8082e126
Reply all
Reply to author
Forward
0 new messages