I want to do the same, because I also dislike nodered.
Next year(nov) I will be redoing my whole HA setup including converting everything to n8n. Will probably do a PR or Community node with updated features to make my own life easier as well.
So if noone else is doing it you can atleast be sure it will be done next year. Will be a bit of a wait but it is the best I can do.
With “Next year (nov)” - do you mean November next year?
I hope I will somehow get the updates, so I can move my stuff to n8n, too.
Maybe if you would think of me then, I could help beta-testing. My Programming skills sadly are only very good in PLC Programming - so I think, I may not be a big help…
I started on a websocket based trigger a while back that loaded entities etc. problem was dealing with connection outages and problems… a skill issue on my side only.
No, I wrote a custom node for it. I was struggling to find it again, turns out it’s tucked away in a 2 year old branch. This was started back when there was no such thing as custom nodes
User settings loaded from: /home/MySpace/.n8n/config
Initializing n8n process
Error loading node "globals" from: "/home/MySpace/.n8n/custom/node_modules/n8n-nodes-homeassistanttrigger/node_modules/engine.io-client/build/cjs/globals.node.js" - require(...).globals is not a constructor
evalmachine.<anonymous>:1
new (require('/home/MySpace/.n8n/custom/node_modules/n8n-nodes-homeassistanttrigger/node_modules/engine.io-client/build/cjs/globals.node.js').globals)()
^
TypeError: require(...).globals is not a constructor
at evalmachine.<anonymous>:1:1
at Script.runInContext (node:vm:134:12)
at loadClassInIsolation (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/ClassLoader.ts:9:16)
at CustomDirectoryLoader.loadNodeFromFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/DirectoryLoader.ts:91:35)
at CustomDirectoryLoader.loadAll (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/DirectoryLoader.ts:335:9)
at LoadNodesAndCredentials.runDirectoryLoader (/usr/local/lib/node_modules/n8n/src/load-nodes-and-credentials.ts:270:3)
at LoadNodesAndCredentials.loadNodesFromCustomDirectories (/usr/local/lib/node_modules/n8n/src/load-nodes-and-credentials.ts:181:4)
at LoadNodesAndCredentials.init (/usr/local/lib/node_modules/n8n/src/load-nodes-and-credentials.ts:100:3)
at Start.init (/usr/local/lib/node_modules/n8n/src/commands/base-command.ts:72:3)
at Start.init (/usr/local/lib/node_modules/n8n/src/commands/start.ts:192:3)
Exiting due to an error.
Error: Exiting due to an error.
at Start.exitWithCrash (/usr/local/lib/node_modules/n8n/src/commands/base-command.ts:151:23)
at Start.catch (/usr/local/lib/node_modules/n8n/src/commands/start.ts:363:14)
at Start._run (/usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/command.js:306:29)
at Config.runCommand (/usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/config/config.js:424:25)
at run (/usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/main.js:94:16)
at /usr/local/lib/node_modules/n8n/bin/n8n:71:2
require(...).globals is not a constructor
evalmachine.<anonymous>:1
new (require('/home/MySpace/.n8n/custom/node_modules/n8n-nodes-homeassistanttrigger/node_modules/engine.io-client/build/cjs/globals.node.js').globals)()
^
TypeError: require(...).globals is not a constructor
at evalmachine.<anonymous>:1:1
at Script.runInContext (node:vm:134:12)
at loadClassInIsolation (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/ClassLoader.ts:9:16)
at CustomDirectoryLoader.loadNodeFromFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/DirectoryLoader.ts:91:35)
at CustomDirectoryLoader.loadAll (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/DirectoryLoader.ts:335:9)
at LoadNodesAndCredentials.runDirectoryLoader (/usr/local/lib/node_modules/n8n/src/load-nodes-and-credentials.ts:270:3)
at LoadNodesAndCredentials.loadNodesFromCustomDirectories (/usr/local/lib/node_modules/n8n/src/load-nodes-and-credentials.ts:181:4)
at LoadNodesAndCredentials.init (/usr/local/lib/node_modules/n8n/src/load-nodes-and-credentials.ts:100:3)
at Start.init (/usr/local/lib/node_modules/n8n/src/commands/base-command.ts:72:3)
at Start.init (/usr/local/lib/node_modules/n8n/src/commands/start.ts:192:3)
I’m experiencing an issue with the integration between Home Assistant and devices connected via TUYA. When I send a state with the value OFF to Home Assistant, the state changes correctly in Home Assistant, but the device does not turn off in TUYA.
However, if I use the button directly in Home Assistant to control the device, it works perfectly, and the device responds in TUYA as expected.
Has anyone encountered this issue before or have any suggestions to resolve this inconsistent behavior?
Hi there,
I wish I can throw away HA automation and useing n8n to setup my automations
but I still can not find homeassistant trigger function on n8n now, does anyone have good idea or suggestion to fix this problem ?
btw if using webhook I need to create webhook auto trigger on HA automation, but it will become meaningless
Soonish I will spend some time on this.
Triggers would only be possible polling data so would be on an interval and less useful for home automation I think.
The Rest API is limitted in that.
Other option is websockets but I have no experience with that and not sure if n8n allows using websockets in nodes, last time I checked it wasn’t possible I think.